diff --git a/.fern/metadata.json b/.fern/metadata.json index ebdd5b4..c82f984 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,10 +9,10 @@ "version": "1.21" } }, - "originGitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd", + "originGitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0-next.9", + "requestedVersion": "3.0.0-next.10", "ciProvider": "github", - "sdkVersion": "v3.0.0-next.9" + "sdkVersion": "v3.0.0-next.10" } \ No newline at end of file diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index 223c5eb..0f2e97b 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "go", - "canonicalVersion": "3.0.0-next.9", - "sdkVersion": "3.0.0-next.9", + "canonicalVersion": "3.0.0-next.10", + "sdkVersion": "3.0.0-next.10", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "4ee27900dbb0b13408ce00a0e80d606444ab81e9d5a76186fa984c8c8dfe09fe", - "gitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd", + "openapiSha256": "9d6c7cdd459982ba9e718a3842c969003b466e3fd73883fef7783dc78e12cdfe", + "gitCommit": "31a712963c171ce9ebd6815e873c9895e389afc2", "gitCommitIsDirty": false }, "fern": { diff --git a/core/request_option.go b/core/request_option.go index 290b6d1..1107192 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.9") - headers.Set("User-Agent", "github.com/embedpdf/cloudpdf-sdk-go/v3/3.0.0-next.9") + headers.Set("X-Fern-SDK-Version", "v3.0.0-next.10") + headers.Set("User-Agent", "github.com/embedpdf/cloudpdf-sdk-go/v3/3.0.0-next.10") return headers } diff --git a/doc.go b/doc.go index 1185841..2fe8d2e 100644 --- a/doc.go +++ b/doc.go @@ -926,10 +926,11 @@ var ( docManifest200ResponseFieldMetadataVersion = big.NewInt(1 << 2) docManifest200ResponseFieldActionsVersion = big.NewInt(1 << 3) docManifest200ResponseFieldAttachmentsVersion = big.NewInt(1 << 4) - docManifest200ResponseFieldAuditHead = big.NewInt(1 << 5) - docManifest200ResponseFieldBaseSha = big.NewInt(1 << 6) - docManifest200ResponseFieldScopes = big.NewInt(1 << 7) - docManifest200ResponseFieldPages = big.NewInt(1 << 8) + docManifest200ResponseFieldAnnotationsVersion = big.NewInt(1 << 5) + docManifest200ResponseFieldAuditHead = big.NewInt(1 << 6) + docManifest200ResponseFieldBaseSha = big.NewInt(1 << 7) + docManifest200ResponseFieldScopes = big.NewInt(1 << 8) + docManifest200ResponseFieldPages = big.NewInt(1 << 9) ) type DocManifest200Response struct { @@ -938,6 +939,7 @@ type DocManifest200Response struct { MetadataVersion int `json:"metadataVersion" url:"metadataVersion"` ActionsVersion *int `json:"actionsVersion,omitempty" url:"actionsVersion,omitempty"` AttachmentsVersion *int `json:"attachmentsVersion,omitempty" url:"attachmentsVersion,omitempty"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` AuditHead int `json:"auditHead" url:"auditHead"` BaseSha string `json:"baseSha" url:"baseSha"` Scopes *DocManifest200ResponseScopes `json:"scopes,omitempty" url:"scopes,omitempty"` @@ -985,6 +987,13 @@ func (d *DocManifest200Response) GetAttachmentsVersion() *int { return d.AttachmentsVersion } +func (d *DocManifest200Response) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocManifest200Response) GetAuditHead() int { if d == nil { return 0 @@ -1062,6 +1071,13 @@ func (d *DocManifest200Response) SetAttachmentsVersion(attachmentsVersion *int) d.require(docManifest200ResponseFieldAttachmentsVersion) } +// 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 *DocManifest200Response) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docManifest200ResponseFieldAnnotationsVersion) +} + // 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 *DocManifest200Response) SetAuditHead(auditHead int) { diff --git a/doc/annotations.go b/doc/annotations.go index 4e206b3..e218a26 100644 --- a/doc/annotations.go +++ b/doc/annotations.go @@ -190,6 +190,50 @@ func (l *ListAnnotationsRequest) SetPon(pon int) { l.require(listAnnotationsRequestFieldPon) } +var ( + listAllAnnotationsRequestFieldDocumentPassword = big.NewInt(1 << 0) + listAllAnnotationsRequestFieldDocID = big.NewInt(1 << 1) + listAllAnnotationsRequestFieldLayerName = big.NewInt(1 << 2) +) + +type ListAllAnnotationsRequest 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:"-"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` +} + +func (l *ListAllAnnotationsRequest) require(field *big.Int) { + if l.explicitFields == nil { + l.explicitFields = big.NewInt(0) + } + l.explicitFields.Or(l.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 (l *ListAllAnnotationsRequest) SetDocumentPassword(documentPassword *string) { + l.DocumentPassword = documentPassword + l.require(listAllAnnotationsRequestFieldDocumentPassword) +} + +// 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 (l *ListAllAnnotationsRequest) SetDocID(docID string) { + l.DocID = docID + l.require(listAllAnnotationsRequestFieldDocID) +} + +// 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 (l *ListAllAnnotationsRequest) SetLayerName(layerName string) { + l.LayerName = layerName + l.require(listAllAnnotationsRequestFieldLayerName) +} + var ( updateAnnotationsRequestFieldDocumentPassword = big.NewInt(1 << 0) updateAnnotationsRequestFieldDocID = big.NewInt(1 << 1) diff --git a/doc/annotations/client.go b/doc/annotations/client.go index d66c2b8..a40f0db 100644 --- a/doc/annotations/client.go +++ b/doc/annotations/client.go @@ -35,6 +35,34 @@ func NewClient(options *core.RequestOptions) *Client { } } +// Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by `pageState.pageObjectNumber` when display order matters. +// +// Example: +// +// request := &doc.ListAllAnnotationsRequest{ +// DocID: "docId", +// LayerName: "layerName", +// } +// client.Doc.Annotations.ListAll( +// context.TODO(), +// request, +// ) +func (c *Client) ListAll( + ctx context.Context, + request *doc.ListAllAnnotationsRequest, + opts ...option.RequestOption, +) (*cloudpdf.DocAnnotationsListAll200Response, error) { + response, err := c.WithRawResponse.ListAll( + ctx, + request, + opts..., + ) + if err != nil { + return nil, err + } + return response.Body, nil +} + // Example: // // request := &doc.ListAnnotationsRequest{ diff --git a/doc/annotations/doc_annotations_test/doc_annotations_test.go b/doc/annotations/doc_annotations_test/doc_annotations_test.go index e67c7fa..bb11e49 100644 --- a/doc/annotations/doc_annotations_test/doc_annotations_test.go +++ b/doc/annotations/doc_annotations_test/doc_annotations_test.go @@ -77,6 +77,33 @@ func VerifyRequestCount( require.Equal(t, expected, len(result.Requests)) } +func TestDocAnnotationsListAllWithWireMock( + 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.ListAllAnnotationsRequest{ + DocID: "docId", + LayerName: "layerName", + } + _, invocationErr := client.Doc.Annotations.ListAll( + context.TODO(), + request, + option.WithHTTPHeader( + http.Header{"X-Test-Id": []string{"TestDocAnnotationsListAllWithWireMock"}}, + ), + ) + + require.NoError(t, invocationErr, "Client method call should succeed") + VerifyRequestCount(t, "TestDocAnnotationsListAllWithWireMock", "GET", "/v1/docs/docId/layers/layerName/annotations/items", nil, 1) +} + func TestDocAnnotationsListWithWireMock( t *testing.T, ) { diff --git a/doc/annotations/raw_client.go b/doc/annotations/raw_client.go index fe3dd52..11a4c02 100644 --- a/doc/annotations/raw_client.go +++ b/doc/annotations/raw_client.go @@ -33,6 +33,56 @@ func NewRawClient(options *core.RequestOptions) *RawClient { } } +func (r *RawClient) ListAll( + ctx context.Context, + request *doc.ListAllAnnotationsRequest, + opts ...option.RequestOption, +) (*core.Response[*cloudpdf.DocAnnotationsListAll200Response], error) { + options := core.NewRequestOptions(opts...) + baseURL := internal.ResolveBaseURL( + options.BaseURL, + r.baseURL, + "", + ) + endpointURL := internal.EncodeURL( + baseURL+"/v1/docs/%v/layers/%v/annotations/items", + request.DocID, + request.LayerName, + ) + headers := internal.MergeHeaders( + r.options.ToHeader(), + options.ToHeader(), + ) + if request.DocumentPassword != nil { + headers.Add("X-Document-Password", *request.DocumentPassword) + } + + var response *cloudpdf.DocAnnotationsListAll200Response + 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.DocAnnotationsListAll200Response]{ + StatusCode: raw.StatusCode, + Header: raw.Header, + Body: response, + }, nil +} + func (r *RawClient) List( ctx context.Context, request *doc.ListAnnotationsRequest, diff --git a/doc/annotations_test.go b/doc/annotations_test.go index c0a15e2..6d69849 100644 --- a/doc/annotations_test.go +++ b/doc/annotations_test.go @@ -534,6 +534,129 @@ func TestSettersMarkExplicitListAnnotationsRequest(t *testing.T) { } +func TestSettersListAllAnnotationsRequest(t *testing.T) { + t.Run("SetDocumentPassword", func(t *testing.T) { + obj := &ListAllAnnotationsRequest{} + 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 := &ListAllAnnotationsRequest{} + 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 := &ListAllAnnotationsRequest{} + var fernTestValueLayerName string + obj.SetLayerName(fernTestValueLayerName) + assert.Equal(t, fernTestValueLayerName, obj.LayerName) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestSettersMarkExplicitListAllAnnotationsRequest(t *testing.T) { + t.Run("SetDocumentPassword_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &ListAllAnnotationsRequest{} + 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 := &ListAllAnnotationsRequest{} + 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 := &ListAllAnnotationsRequest{} + 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 + }) + +} + func TestSettersUpdateAnnotationsRequest(t *testing.T) { t.Run("SetDocumentPassword", func(t *testing.T) { obj := &UpdateAnnotationsRequest{} diff --git a/doc/error_codes.go b/doc/error_codes.go index 5d438be..c8dfdb5 100644 --- a/doc/error_codes.go +++ b/doc/error_codes.go @@ -14,6 +14,11 @@ var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ APIError: apiError, } }, + 409: func(apiError *core.APIError) error { + return &cloudpdf.ConflictError{ + APIError: apiError, + } + }, 400: func(apiError *core.APIError) error { return &cloudpdf.BadRequestError{ APIError: apiError, diff --git a/doc_test.go b/doc_test.go index 8d005d7..5f7c715 100644 --- a/doc_test.go +++ b/doc_test.go @@ -2018,6 +2018,14 @@ func TestSettersDocManifest200Response(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocManifest200Response{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetAuditHead", func(t *testing.T) { obj := &DocManifest200Response{} var fernTestValueAuditHead int @@ -2188,6 +2196,39 @@ func TestGettersDocManifest200Response(t *testing.T) { _ = obj.GetAttachmentsVersion() // Should return zero value }) + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocManifest200Response{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocManifest200Response{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocManifest200Response + // Should not 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("GetAuditHead", func(t *testing.T) { t.Parallel() // Arrange @@ -2458,6 +2499,37 @@ func TestSettersMarkExplicitDocManifest200Response(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.Parallel() + // Arrange + obj := &DocManifest200Response{} + 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("SetAuditHead_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange diff --git a/errors.go b/errors.go index 42719ca..7686539 100644 --- a/errors.go +++ b/errors.go @@ -58,11 +58,11 @@ func (b *BadRequestError) Unwrap() error { // Conflict type ConflictError struct { *core.APIError - Body *DocumentsUploadProxy409Response + Body any } func (c *ConflictError) UnmarshalJSON(data []byte) error { - var body *DocumentsUploadProxy409Response + var body any if err := json.Unmarshal(data, &body); err != nil { return err } diff --git a/reference.md b/reference.md index 02fd273..2a48378 100644 --- a/reference.md +++ b/reference.md @@ -2058,6 +2058,83 @@ client.Tokens.Revoke( ## Doc Annotations +
client.Doc.Annotations.ListAll(DocID, LayerName) -> *cloudpdf.DocAnnotationsListAll200Response +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns one entry per page plus the audit-log cursor for reconciling subsequent document events. Page order is unspecified; join by `pageState.pageObjectNumber` when display order matters. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```go +request := &doc.ListAllAnnotationsRequest{ + DocID: "docId", + LayerName: "layerName", +} +client.Doc.Annotations.ListAll( + context.TODO(), + request, +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**docID:** `string` + +
+
+ +
+
+ +**layerName:** `string` + +
+
+ +
+
+ +**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.Annotations.List(DocID, LayerName, Pon) -> *cloudpdf.DocAnnotationsList200Response
diff --git a/types.go b/types.go index 1ef0343..aa7b216 100644 --- a/types.go +++ b/types.go @@ -893,12 +893,14 @@ func (d *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationState var ( docAnnotationsCreate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docAnnotationsCreate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docAnnotationsCreate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docAnnotationsCreate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docAnnotationsCreate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocAnnotationsCreate200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -922,6 +924,13 @@ func (d *DocAnnotationsCreate200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocAnnotationsCreate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocAnnotationsCreate200ResponseMetaCacheDelta) GetPages() []*DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -957,6 +966,13 @@ func (d *DocAnnotationsCreate200ResponseMetaCacheDelta) SetDocVersion(docVersion d.require(docAnnotationsCreate200ResponseMetaCacheDeltaFieldDocVersion) } +// 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 *DocAnnotationsCreate200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docAnnotationsCreate200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + // 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 *DocAnnotationsCreate200ResponseMetaCacheDelta) SetPages(pages []*DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem) { @@ -2355,12 +2371,14 @@ func (d *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationState var ( docAnnotationsDelete200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docAnnotationsDelete200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docAnnotationsDelete200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docAnnotationsDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docAnnotationsDelete200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocAnnotationsDelete200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -2384,6 +2402,13 @@ func (d *DocAnnotationsDelete200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocAnnotationsDelete200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocAnnotationsDelete200ResponseMetaCacheDelta) GetPages() []*DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -2419,6 +2444,13 @@ func (d *DocAnnotationsDelete200ResponseMetaCacheDelta) SetDocVersion(docVersion d.require(docAnnotationsDelete200ResponseMetaCacheDeltaFieldDocVersion) } +// 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 *DocAnnotationsDelete200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docAnnotationsDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + // 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 *DocAnnotationsDelete200ResponseMetaCacheDelta) SetPages(pages []*DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem) { @@ -3535,23 +3567,24 @@ var ( docAnnotationsList200ResponseAnnotationsItemCaretFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemCaretFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemCaretFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemCaretFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemCaretFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemCaretFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemCaretFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemCaretFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemCaretFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemCaretFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemCaretFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemCaretFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemCaretFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemCaretFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemCaretFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemCaretFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemCaretFieldIntent = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemCaretFieldRectDifferences = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemCaretFieldRotation = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemCaretFieldUnrotatedRect = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemCaretFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemCaretFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemCaretFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemCaretFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemCaretFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemCaretFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemCaretFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemCaretFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemCaretFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemCaretFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemCaretFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemCaretFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemCaretFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemCaretFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemCaretFieldIntent = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemCaretFieldRectDifferences = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemCaretFieldRotation = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemCaretFieldUnrotatedRect = big.NewInt(1 << 25) ) type DocAnnotationsList200ResponseAnnotationsItemCaret struct { @@ -3563,6 +3596,7 @@ type DocAnnotationsList200ResponseAnnotationsItemCaret struct { Flags *DocAnnotationsList200ResponseAnnotationsItemCaretFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemCaretRect `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"` @@ -3644,6 +3678,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemCaret) GetContents() *strin return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemCaret) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemCaret) GetAuthor() *string { if d == nil { return nil @@ -3833,6 +3874,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemCaret) SetContents(contents d.require(docAnnotationsList200ResponseAnnotationsItemCaretFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemCaret) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemCaretFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaret) SetAuthor(author *string) { @@ -10272,27 +10320,28 @@ var ( docAnnotationsList200ResponseAnnotationsItemCircleFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemCircleFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemCircleFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemCircleFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemCircleFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemCircleFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemCircleFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemCircleFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemCircleFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemCircleFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemCircleFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemCircleFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemCircleFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemCircleFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemCircleFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemCircleFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemCircleFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemCircleFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemCircleFieldDashArray = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemCircleFieldInteriorColor = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemCircleFieldCloudyIntensity = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemCircleFieldRectDifferences = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemCircleFieldRotation = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemCircleFieldUnrotatedRect = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemCircleFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemCircleFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemCircleFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemCircleFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemCircleFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemCircleFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemCircleFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemCircleFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemCircleFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemCircleFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemCircleFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemCircleFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemCircleFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemCircleFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemCircleFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemCircleFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemCircleFieldDashArray = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemCircleFieldInteriorColor = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemCircleFieldCloudyIntensity = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemCircleFieldRectDifferences = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemCircleFieldRotation = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemCircleFieldUnrotatedRect = big.NewInt(1 << 29) ) type DocAnnotationsList200ResponseAnnotationsItemCircle struct { @@ -10304,6 +10353,7 @@ type DocAnnotationsList200ResponseAnnotationsItemCircle struct { Flags *DocAnnotationsList200ResponseAnnotationsItemCircleFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemCircleRect `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"` @@ -10389,6 +10439,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemCircle) GetContents() *stri return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemCircle) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemCircle) GetAuthor() *string { if d == nil { return nil @@ -10606,6 +10663,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemCircle) SetContents(content d.require(docAnnotationsList200ResponseAnnotationsItemCircleFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemCircle) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemCircleFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCircle) SetAuthor(author *string) { @@ -17198,21 +17262,22 @@ var ( docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldIcon = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldFile = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldIcon = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldFile = big.NewInt(1 << 23) ) type DocAnnotationsList200ResponseAnnotationsItemFileAttachment struct { @@ -17224,6 +17289,7 @@ type DocAnnotationsList200ResponseAnnotationsItemFileAttachment struct { Flags *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect `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"` @@ -17303,6 +17369,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemFileAttachment) GetContents return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemFileAttachment) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemFileAttachment) GetAuthor() *string { if d == nil { return nil @@ -17478,6 +17551,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemFileAttachment) SetContents d.require(docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachment) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemFileAttachmentFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachment) SetAuthor(author *string) { @@ -23812,33 +23892,34 @@ var ( docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemFreeTextFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemFreeTextFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldIntent = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFontFamily = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFontSize = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldTextAlign = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldColor = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFontColor = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldOpacity = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldStrokeWidth = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldBorderStyle = big.NewInt(1 << 28) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldDashArray = big.NewInt(1 << 29) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldRectDifferences = big.NewInt(1 << 30) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldCalloutLine = big.NewInt(1 << 31) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldLineEnding = big.NewInt(1 << 32) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldRotation = big.NewInt(1 << 33) - docAnnotationsList200ResponseAnnotationsItemFreeTextFieldUnrotatedRect = big.NewInt(1 << 34) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldIntent = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFontFamily = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFontSize = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldTextAlign = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldColor = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldFontColor = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldInteriorColor = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldOpacity = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldStrokeWidth = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldBorderStyle = big.NewInt(1 << 29) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldDashArray = big.NewInt(1 << 30) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldRectDifferences = big.NewInt(1 << 31) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldCalloutLine = big.NewInt(1 << 32) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldLineEnding = big.NewInt(1 << 33) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldRotation = big.NewInt(1 << 34) + docAnnotationsList200ResponseAnnotationsItemFreeTextFieldUnrotatedRect = big.NewInt(1 << 35) ) type DocAnnotationsList200ResponseAnnotationsItemFreeText struct { @@ -23850,6 +23931,7 @@ type DocAnnotationsList200ResponseAnnotationsItemFreeText struct { Flags *DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemFreeTextRect `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"` @@ -23941,6 +24023,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemFreeText) GetContents() *st return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemFreeText) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemFreeText) GetAuthor() *string { if d == nil { return nil @@ -24200,6 +24289,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemFreeText) SetContents(conte d.require(docAnnotationsList200ResponseAnnotationsItemFreeTextFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemFreeText) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemFreeTextFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemFreeText) SetAuthor(author *string) { @@ -31101,20 +31197,21 @@ var ( docAnnotationsList200ResponseAnnotationsItemHighlightFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemHighlightFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemHighlightFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemHighlightFieldQuadPoints = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemHighlightFieldQuadPoints = big.NewInt(1 << 22) ) type DocAnnotationsList200ResponseAnnotationsItemHighlight struct { @@ -31126,6 +31223,7 @@ type DocAnnotationsList200ResponseAnnotationsItemHighlight struct { Flags *DocAnnotationsList200ResponseAnnotationsItemHighlightFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemHighlightRect `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"` @@ -31204,6 +31302,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemHighlight) GetContents() *s return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemHighlight) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemHighlight) GetAuthor() *string { if d == nil { return nil @@ -31372,6 +31477,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemHighlight) SetContents(cont d.require(docAnnotationsList200ResponseAnnotationsItemHighlightFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemHighlight) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemHighlightFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemHighlight) SetAuthor(author *string) { @@ -38039,25 +38151,26 @@ var ( docAnnotationsList200ResponseAnnotationsItemInkFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemInkFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemInkFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemInkFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemInkFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemInkFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemInkFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemInkFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemInkFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemInkFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemInkFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemInkFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemInkFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemInkFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemInkFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemInkFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemInkFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemInkFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemInkFieldDashArray = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemInkFieldIntent = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemInkFieldInkList = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemInkFieldRotation = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemInkFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemInkFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemInkFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemInkFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemInkFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemInkFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemInkFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemInkFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemInkFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemInkFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemInkFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemInkFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemInkFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemInkFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemInkFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemInkFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemInkFieldDashArray = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemInkFieldIntent = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemInkFieldInkList = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemInkFieldRotation = big.NewInt(1 << 27) ) type DocAnnotationsList200ResponseAnnotationsItemInk struct { @@ -38069,6 +38182,7 @@ type DocAnnotationsList200ResponseAnnotationsItemInk struct { Flags *DocAnnotationsList200ResponseAnnotationsItemInkFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemInkRect `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"` @@ -38152,6 +38266,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemInk) GetContents() *string return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemInk) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemInk) GetAuthor() *string { if d == nil { return nil @@ -38355,6 +38476,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemInk) SetContents(contents * d.require(docAnnotationsList200ResponseAnnotationsItemInkFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemInk) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemInkFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemInk) SetAuthor(author *string) { @@ -44672,26 +44800,27 @@ var ( docAnnotationsList200ResponseAnnotationsItemLineFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemLineFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemLineFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemLineFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemLineFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemLineFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemLineFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemLineFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemLineFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemLineFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemLineFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemLineFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemLineFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemLineFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemLineFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemLineFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemLineFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemLineFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemLineFieldDashArray = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemLineFieldInteriorColor = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemLineFieldLinePoints = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemLineFieldLineEndings = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemLineFieldRotation = big.NewInt(1 << 27) + 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) ) type DocAnnotationsList200ResponseAnnotationsItemLine struct { @@ -44703,6 +44832,7 @@ type DocAnnotationsList200ResponseAnnotationsItemLine struct { Flags *DocAnnotationsList200ResponseAnnotationsItemLineFlags `json:"flags" url:"flags"` Rect *DocAnnotationsList200ResponseAnnotationsItemLineRect `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"` @@ -44787,6 +44917,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetContents() *string return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetAuthor() *string { if d == nil { return nil @@ -44997,6 +45134,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLine) SetContents(contents d.require(docAnnotationsList200ResponseAnnotationsItemLineFieldContents) } +// 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 *DocAnnotationsList200ResponseAnnotationsItemLine) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemLineFieldSubject) +} + // 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 *DocAnnotationsList200ResponseAnnotationsItemLine) SetAuthor(author *string) { @@ -51810,18 +51954,19 @@ var ( docAnnotationsList200ResponseAnnotationsItemLinkFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemLinkFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemLinkFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemLinkFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemLinkFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemLinkFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemLinkFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemLinkFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemLinkFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemLinkFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemLinkFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemLinkFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemLinkFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemLinkFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemLinkFieldTarget = big.NewInt(1 << 19) + 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 { @@ -51833,6 +51978,7 @@ type DocAnnotationsList200ResponseAnnotationsItemLink struct { 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"` @@ -51909,6 +52055,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetContents() *string return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetAuthor() *string { if d == nil { return nil @@ -52063,6 +52216,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetContents(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) { @@ -59982,26 +60142,27 @@ var ( docAnnotationsList200ResponseAnnotationsItemPolygonFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemPolygonFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemPolygonFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldDashArray = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldInteriorColor = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldVertices = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldRotation = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldCloudyIntensity = big.NewInt(1 << 27) + 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) ) type DocAnnotationsList200ResponseAnnotationsItemPolygon struct { @@ -60013,6 +60174,7 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygon struct { 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"` @@ -60097,6 +60259,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetContents() *str return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetAuthor() *string { if d == nil { return nil @@ -60307,6 +60476,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetContents(conten 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 *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetSubject(subject *string) { + d.Subject = subject + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetAuthor(author *string) { @@ -66728,26 +66904,27 @@ var ( docAnnotationsList200ResponseAnnotationsItemPolylineFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemPolylineFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemPolylineFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldDashArray = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldInteriorColor = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldVertices = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldRotation = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldLineEndings = big.NewInt(1 << 27) + 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 { @@ -66759,6 +66936,7 @@ type DocAnnotationsList200ResponseAnnotationsItemPolyline struct { 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"` @@ -66843,6 +67021,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetContents() *st return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetAuthor() *string { if d == nil { return nil @@ -67053,6 +67238,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetContents(conte d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldContents) } +// 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) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldSubject) +} + // 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) { @@ -73666,27 +73858,28 @@ var ( docAnnotationsList200ResponseAnnotationsItemRedactFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemRedactFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemRedactFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemRedactFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemRedactFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemRedactFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemRedactFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemRedactFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemRedactFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemRedactFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemRedactFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemRedactFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemRedactFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemRedactFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemRedactFieldQuadPoints = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemRedactFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemRedactFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemRedactFieldInteriorColor = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemRedactFieldOverlayText = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemRedactFieldRepeat = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFontFamily = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFontSize = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFontColor = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemRedactFieldTextAlign = big.NewInt(1 << 28) + 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 DocAnnotationsList200ResponseAnnotationsItemRedact struct { @@ -73698,6 +73891,7 @@ type DocAnnotationsList200ResponseAnnotationsItemRedact struct { 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"` @@ -73783,6 +73977,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetContents() *stri return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetAuthor() *string { if d == nil { return nil @@ -74000,6 +74201,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetContents(content d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldContents) } +// 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) +} + // 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) { @@ -81031,27 +81239,28 @@ var ( docAnnotationsList200ResponseAnnotationsItemSquareFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemSquareFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemSquareFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemSquareFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemSquareFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemSquareFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemSquareFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemSquareFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemSquareFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemSquareFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemSquareFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemSquareFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemSquareFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemSquareFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemSquareFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemSquareFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemSquareFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemSquareFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemSquareFieldDashArray = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemSquareFieldInteriorColor = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemSquareFieldCloudyIntensity = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemSquareFieldRectDifferences = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemSquareFieldRotation = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemSquareFieldUnrotatedRect = big.NewInt(1 << 28) + 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 { @@ -81063,6 +81272,7 @@ type DocAnnotationsList200ResponseAnnotationsItemSquare struct { 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"` @@ -81148,6 +81358,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetContents() *stri return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetAuthor() *string { if d == nil { return nil @@ -81365,6 +81582,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetContents(content d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldContents) } +// 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) +} + // 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) { @@ -87957,20 +88181,21 @@ var ( docAnnotationsList200ResponseAnnotationsItemSquigglyFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemSquigglyFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldQuadPoints = big.NewInt(1 << 21) + 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 DocAnnotationsList200ResponseAnnotationsItemSquiggly struct { @@ -87982,6 +88207,7 @@ type DocAnnotationsList200ResponseAnnotationsItemSquiggly struct { 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"` @@ -88060,6 +88286,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetContents() *st return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetAuthor() *string { if d == nil { return nil @@ -88228,6 +88461,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetContents(conte 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) { @@ -94895,20 +95135,21 @@ var ( docAnnotationsList200ResponseAnnotationsItemStampFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemStampFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemStampFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemStampFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemStampFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemStampFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemStampFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemStampFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemStampFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemStampFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemStampFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemStampFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemStampFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemStampFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemStampFieldName = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemStampFieldRotation = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemStampFieldUnrotatedRect = big.NewInt(1 << 21) + 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 DocAnnotationsList200ResponseAnnotationsItemStamp struct { @@ -94920,6 +95161,7 @@ type DocAnnotationsList200ResponseAnnotationsItemStamp struct { 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"` @@ -94998,6 +95240,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetContents() *strin return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetAuthor() *string { if d == nil { return nil @@ -95166,6 +95415,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetContents(contents d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldContents) } +// 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) { @@ -101317,21 +101573,22 @@ var ( docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldQuadPoints = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIntent = big.NewInt(1 << 22) + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeout struct { @@ -101343,6 +101600,7 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeout struct { 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"` @@ -101422,6 +101680,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetContents() *s return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetAuthor() *string { if d == nil { return nil @@ -101597,6 +101862,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetContents(cont 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) { @@ -108290,20 +108562,23 @@ var ( docAnnotationsList200ResponseAnnotationsItemTextFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemTextFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemTextFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemTextFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemTextFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemTextFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemTextFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemTextFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemTextFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemTextFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemTextFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemTextFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemTextFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemTextFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemTextFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemTextFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemTextFieldIcon = big.NewInt(1 << 21) + 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 { @@ -108315,6 +108590,7 @@ type DocAnnotationsList200ResponseAnnotationsItemText struct { 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"` @@ -108329,6 +108605,8 @@ type DocAnnotationsList200ResponseAnnotationsItemText struct { 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:"-"` @@ -108393,6 +108671,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetContents() *string return d.Contents } +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetAuthor() *string { if d == nil { return nil @@ -108491,6 +108776,20 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIcon() DocAnnotati return d.Icon } +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetState() *string { + if d == nil { + return nil + } + return d.State +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetStateModel() *string { + if d == nil { + return nil + } + return d.StateModel +} + func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetExtraProperties() map[string]interface{} { if d == nil { return nil @@ -108561,6 +108860,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetContents(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) { @@ -108659,6 +108965,20 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIcon(icon DocAnnot 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 { @@ -114733,20 +115053,21 @@ var ( docAnnotationsList200ResponseAnnotationsItemUnderlineFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemUnderlineFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldOpacity = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldQuadPoints = big.NewInt(1 << 21) + 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 { @@ -114758,6 +115079,7 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderline struct { 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"` @@ -114836,6 +115158,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetContents() *s 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 @@ -115004,6 +115333,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetContents(cont 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) { @@ -121671,19 +122007,20 @@ var ( docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeCode = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeName = big.NewInt(1 << 20) + 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 { @@ -121695,6 +122032,7 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupported struct { 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"` @@ -121772,6 +122110,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetContents() 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 @@ -121933,6 +122278,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetContents(co 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) { @@ -127945,27 +128297,28 @@ var ( docAnnotationsList200ResponseAnnotationsItemWidgetFieldFlags = big.NewInt(1 << 5) docAnnotationsList200ResponseAnnotationsItemWidgetFieldRect = big.NewInt(1 << 6) docAnnotationsList200ResponseAnnotationsItemWidgetFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldAuthor = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreated = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldModified = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldBlendMode = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldInReplyTo = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldReplyType = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldUserID = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldGroupID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreatedBy = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldUpdatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldActions = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldColor = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldInteriorColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldStrokeWidth = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldBorderStyle = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontFamily = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontSize = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontColor = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldTextAlign = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldObjectNumber = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldFamily = big.NewInt(1 << 28) + 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 { @@ -127977,6 +128330,7 @@ type DocAnnotationsList200ResponseAnnotationsItemWidget struct { 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"` @@ -128062,6 +128416,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetContents() *stri 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 @@ -128279,6 +128640,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetContents(content 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) { @@ -133529,15 +133897,133127 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) validate() } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldRevision = big.NewInt(1 << 2) + 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" +) + +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 + } + 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) + } + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions `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() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) { + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem { + return &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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions `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() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) { + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem { + return &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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions `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() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) { + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem { + return &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.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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +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) +} + +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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) 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 ( + 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 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) 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 *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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) 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 ( + 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 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) 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 ( + 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 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) 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 *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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) 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(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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) 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 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.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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldPageObjectNumber) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldPageObjectNumber) +} + +// 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) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldGeneration) +} + +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 +} + +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) +} + +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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) 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 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 ( + 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) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldColor = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontColor = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInteriorColor = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldOpacity = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldStrokeWidth = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBorderStyle = big.NewInt(1 << 29) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldDashArray = big.NewInt(1 << 30) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRectDifferences = big.NewInt(1 << 31) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCalloutLine = big.NewInt(1 << 32) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldLineEnding = big.NewInt(1 << 33) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRotation = big.NewInt(1 << 34) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUnrotatedRect = big.NewInt(1 << 35) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions `json:"actions,omitempty" url:"actions,omitempty"` + Intent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent `json:"intent" url:"intent"` + FontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily `json:"fontFamily" url:"fontFamily"` + FontSize float64 `json:"fontSize" url:"fontSize"` + TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign `json:"textAlign" url:"textAlign"` + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect { + 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 { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIntent() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent { + if d == nil { + return "" + } + return d.Intent +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily { + if d == nil { + return "" + } + return d.FontFamily +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontSize() float64 { + if d == nil { + return 0 + } + return d.FontSize +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign { + if d == nil { + return "" + } + return d.TextAlign +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor { + if d == nil { + return nil + } + return d.FontColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) 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 { + if d == nil { + return nil + } + return d.CalloutLine +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetLineEnding() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding { + if d == nil { + return nil + } + return d.LineEnding +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) 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{} { + if d == nil { + return nil + } + return d.extraProperties +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIndex) +} + +// 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) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIdentityQuality) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) { + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily) { + 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRotation) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUnrotatedRect) +} + +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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem { + return &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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldB = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldR) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldG) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) 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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + 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 { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) 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; +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourier DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "courier" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourierBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "courier-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourierBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "courier-bold-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourierOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "courier-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelvetica DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "helvetica" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelveticaBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "helvetica-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelveticaBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "helvetica-bold-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelveticaOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "helvetica-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesRoman DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "times-roman" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "times-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesBoldItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "times-bold-italic" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "times-italic" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilySymbol DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "symbol" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyZapfDingbats DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily = "zapf-dingbats" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily, error) { + switch s { + case "courier": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourier, nil + case "courier-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourierBold, nil + case "courier-bold-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourierBoldOblique, nil + case "courier-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyCourierOblique, nil + case "helvetica": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelvetica, nil + case "helvetica-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelveticaBold, nil + case "helvetica-bold-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelveticaBoldOblique, nil + case "helvetica-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyHelveticaOblique, nil + case "times-roman": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesRoman, nil + case "times-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesBold, nil + case "times-bold-italic": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesBoldItalic, nil + case "times-italic": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyTimesItalic, nil + case "symbol": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilySymbol, nil + case "zapf-dingbats": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyZapfDingbats, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily { + return &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, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) 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 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) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldR) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldG) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) 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 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) +) + +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"` + + // Private bitmask of 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 *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 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldBottom = big.NewInt(1 << 3) +) + +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"` + + // Private bitmask of 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 *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 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldBottom) +} + +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 +} + +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) +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex { + if d == nil { + return nil + } + return d.Index +} + +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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) error +} + +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) +} + +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 +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision `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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldIndex) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldRevision) +} + +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 +} + +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) +} + +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) +} + +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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldGeneration) +} + +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 +} + +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) +} + +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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldPageObjectNumber) +} + +// 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 + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) 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 ( + 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 +} + +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) +} + +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 +} + +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) +) + +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:"-"` + + extraProperties map[string]interface{} + 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 { + if d == nil { + return 0 + } + return d.Right +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) 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; +// 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) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) 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 ( + 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 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions { + 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.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem { + if d == nil { + return nil + } + return d.QuadPoints +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +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 *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; +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) { + 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode 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" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode, 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) 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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) 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 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 + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) error +} + +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) +} + +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 +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision `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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldIndex) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP4 = big.NewInt(1 << 3) +) + +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"` + + // Private bitmask of 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 *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 { + if d == nil { + return nil + } + return d.P3 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) 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; +// 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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) 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 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetLeft(left float64) { + d.Left = left + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetBottom(bottom float64) { + d.Bottom = bottom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetRight(right float64) { + d.Right = right + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) 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(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType { + 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetDashArray() []float64 { + if d == nil { + return nil + } + return d.DashArray +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetInkList() [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem { + if d == nil { + return nil + } + return d.InkList +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) { + d.Ref = ref + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality) { + d.IdentityQuality = identityQuality + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetNm(nm *string) { + d.Nm = nm + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) { + d.Flags = flags + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) { + d.Rect = rect + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetContents(contents *string) { + d.Contents = contents + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetSubject(subject *string) { + d.Subject = subject + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetAuthor(author *string) { + d.Author = author + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) { + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem { + return &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) +} + +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) +} + +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) +) + +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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldInvisible) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldHidden) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldReadOnly) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLocked) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldToggleNoView) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(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) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) 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 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 { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + + rawJSON json.RawMessage +} + +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) + } + 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldIndex) +} + +// 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) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldPageObjectNumber) +} + +// 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) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) 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; +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) 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 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) +) + +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:"-"` + + extraProperties map[string]interface{} + 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 { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) 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; +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) 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 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + 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 { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) 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; +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetDocSessionID() 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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) 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; +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) 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 ( + 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"` + + // Private bitmask of 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 *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{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) 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 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) 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; +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) 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 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions `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) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions { + 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 d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetDashArray() []float64 { + if d == nil { + return nil + } + return d.DashArray +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLinePoints() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints { + if d == nil { + return nil + } + return d.LinePoints +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLineEndings() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings { + if d == nil { + return nil + } + return d.LineEndings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIndex) +} + +// 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) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIdentityQuality) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInReplyTo) +} + +// 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) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldReplyType) +} + +// 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) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUserID) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldActions) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetLineEndings(lineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) { + d.LineEndings = lineEndings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLineEndings) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRotation) +} + +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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem { + return &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" +) + +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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "inset" +) + +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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldR) +} + +// 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) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldG) +} + +// 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) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) 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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldInvisible) +} + +// 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) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldHidden) +} + +// 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) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldPrint) +} + +// 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) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoZoom) +} + +// 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) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoRotate) +} + +// 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) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoView) +} + +// 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) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldReadOnly) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) 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(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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +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.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldIndex) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldPageObjectNumber) +} + +// 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) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) 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 *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 + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldR) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) 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 ( + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetStart() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart { + if d == nil { + return "" + } + return d.Start +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetEnd() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd { + if d == nil { + return "" + } + return d.End +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) 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 *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) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) 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 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd { + return &d +} + +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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart { + return &d +} + +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 *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{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) 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 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldX) +} + +// 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 + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) 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 ( + 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 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldTop = big.NewInt(1 << 3) +) + +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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetLeft(left float64) { + d.Left = left + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetBottom(bottom float64) { + d.Bottom = bottom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetRight(right float64) { + d.Right = right + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex { + if d == nil { + return nil + } + return d.Index +} + +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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +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 + } + 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 +} + +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) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) 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 ( + 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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *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 + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) 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 ( + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType { + 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +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() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetTarget() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget { + if d == nil { + return nil + } + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) { + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem { + return &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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode { + 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 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"` + + // Private bitmask of 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) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLocked) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldToggleNoView) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLockedContents) +} + +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 +} + +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) +} + +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) +} + +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 { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) error +} + +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) +} + +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) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldIndex) +} + +// 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) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldPageObjectNumber) +} + +// 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 + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) 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 ( + 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 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber) +} + +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 +} + +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) +} + +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) +} + +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 +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldLeft) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldBottom) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldRight) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) 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 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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex { + if d == nil { + return nil + } + return d.Index +} + +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 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) error +} + +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) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +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 +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) 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 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoFieldDestination = big.NewInt(1 << 0) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto struct { + Destination *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination `json:"destination" url:"destination"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) GetDestination() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination { + if d == nil { + return nil + } + return d.Destination +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) 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; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) SetDestination(destination *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) { + d.Destination = destination + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoFieldDestination) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination struct { + Kind string + Xyz *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + Fit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + FitH *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + FitV *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + FitR *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + FitB *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + FitBh *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + FitBv *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetXyz() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz { + if d == nil { + return nil + } + return d.Xyz +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit { + if d == nil { + return nil + } + return d.Fit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFitH() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH { + if d == nil { + return nil + } + return d.FitH +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFitV() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV { + if d == nil { + return nil + } + return d.FitV +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFitR() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR { + if d == nil { + return nil + } + return d.FitR +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFitB() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB { + if d == nil { + return nil + } + return d.FitB +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFitBh() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh { + if d == nil { + return nil + } + return d.FitBh +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) GetFitBv() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv { + if d == nil { + return nil + } + return d.FitBv +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) 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 "xyz": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Xyz = value + case "fit": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fit = value + case "fitH": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FitH = value + case "fitV": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FitV = value + case "fitR": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FitR = value + case "fitB": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FitB = value + case "fitBH": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FitBh = value + case "fitBV": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FitBv = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Xyz != nil { + return internal.MarshalJSONWithExtraProperty(d.Xyz, "kind", "xyz") + } + if d.Fit != nil { + return internal.MarshalJSONWithExtraProperty(d.Fit, "kind", "fit") + } + if d.FitH != nil { + return internal.MarshalJSONWithExtraProperty(d.FitH, "kind", "fitH") + } + if d.FitV != nil { + return internal.MarshalJSONWithExtraProperty(d.FitV, "kind", "fitV") + } + if d.FitR != nil { + return internal.MarshalJSONWithExtraProperty(d.FitR, "kind", "fitR") + } + if d.FitB != nil { + return internal.MarshalJSONWithExtraProperty(d.FitB, "kind", "fitB") + } + if d.FitBh != nil { + return internal.MarshalJSONWithExtraProperty(d.FitBh, "kind", "fitBH") + } + if d.FitBv != nil { + return internal.MarshalJSONWithExtraProperty(d.FitBv, "kind", "fitBV") + } + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationVisitor interface { + VisitXyz(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) error + VisitFit(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) error + VisitFitH(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) error + VisitFitV(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) error + VisitFitR(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) error + VisitFitB(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) error + VisitFitBh(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) error + VisitFitBv(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationVisitor) error { + if d.Xyz != nil { + return visitor.VisitXyz(d.Xyz) + } + if d.Fit != nil { + return visitor.VisitFit(d.Fit) + } + if d.FitH != nil { + return visitor.VisitFitH(d.FitH) + } + if d.FitV != nil { + return visitor.VisitFitV(d.FitV) + } + if d.FitR != nil { + return visitor.VisitFitR(d.FitR) + } + if d.FitB != nil { + return visitor.VisitFitB(d.FitB) + } + if d.FitBh != nil { + return visitor.VisitFitBh(d.FitBh) + } + if d.FitBv != nil { + return visitor.VisitFitBv(d.FitBv) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Xyz != nil { + fields = append(fields, "xyz") + } + if d.Fit != nil { + fields = append(fields, "fit") + } + if d.FitH != nil { + fields = append(fields, "fitH") + } + if d.FitV != nil { + fields = append(fields, "fitV") + } + if d.FitR != nil { + fields = append(fields, "fitR") + } + if d.FitB != nil { + fields = append(fields, "fitB") + } + if d.FitBh != nil { + fields = append(fields, "fitBH") + } + if d.FitBv != nil { + fields = append(fields, "fitBV") + } + 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitFieldPageObjectNumber = big.NewInt(1 << 0) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit struct { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitFieldPageObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBFieldPageObjectNumber = big.NewInt(1 << 0) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB struct { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBFieldPageObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBhFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBhFieldTop = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Top *float64 `json:"top,omitempty" url:"top,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) GetTop() *float64 { + if d == nil { + return nil + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBhFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) SetTop(top *float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBhFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBvFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBvFieldLeft = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Left *float64 `json:"left,omitempty" url:"left,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) GetLeft() *float64 { + if d == nil { + return nil + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBvFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) SetLeft(left *float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBvFieldLeft) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitHFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitHFieldTop = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Top *float64 `json:"top,omitempty" url:"top,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) GetTop() *float64 { + if d == nil { + return nil + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitHFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) SetTop(top *float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitHFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldLeft = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldBottom = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldRight = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldTop = big.NewInt(1 << 4) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldLeft) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldBottom) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldRight) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitRFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitVFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitVFieldLeft = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Left *float64 `json:"left,omitempty" url:"left,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) GetLeft() *float64 { + if d == nil { + return nil + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitVFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) SetLeft(left *float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitVFieldLeft) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldLeft = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldTop = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldZoom = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Left *float64 `json:"left,omitempty" url:"left,omitempty"` + Top *float64 `json:"top,omitempty" url:"top,omitempty"` + Zoom *float64 `json:"zoom,omitempty" url:"zoom,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) GetLeft() *float64 { + if d == nil { + return nil + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) GetTop() *float64 { + if d == nil { + return nil + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) GetZoom() *float64 { + if d == nil { + return nil + } + return d.Zoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) SetLeft(left *float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldLeft) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) SetTop(top *float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldTop) +} + +// SetZoom sets the Zoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) SetZoom(zoom *float64) { + d.Zoom = zoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyzFieldZoom) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemoteFieldFile = big.NewInt(1 << 0) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) GetFile() string { + if d == nil { + return "" + } + return d.File +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) 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; +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) 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 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunchFieldPath = big.NewInt(1 << 0) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) GetPath() string { + if d == nil { + return "" + } + return d.Path +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) 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; +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamedFieldName = big.NewInt(1 << 0) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) GetName() string { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) SetName(name string) { + d.Name = name + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamedFieldName) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURIFieldURI = big.NewInt(1 << 0) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) GetURI() string { + if d == nil { + return "" + } + return d.URI +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) 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 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) 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 ( + 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetDashArray() []float64 { + if d == nil { + return nil + } + return d.DashArray +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetVertices() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem { + if d == nil { + return nil + } + return d.Vertices +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCloudyIntensity() *float64 { + if d == nil { + return nil + } + return d.CloudyIntensity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) { + 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle) { + d.BorderStyle = borderStyle + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) { + d.InteriorColor = interiorColor + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem { + return &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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetR(r int) { + d.R = r + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetG(g int) { + d.G = g + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) 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 ( + 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 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetHidden(hidden bool) { + d.Hidden = hidden + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetPrint(print bool) { + d.Print = print + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoView(noView bool) { + d.NoView = noView + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetLocked(locked bool) { + d.Locked = locked + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality { + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) error +} + +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) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +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 +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) 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 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldLeft) +} + +// 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) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldBottom) +} + +// 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) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldRight) +} + +// 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) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) 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(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) { + d.Revision = revision + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) 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 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldX) +} + +// 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) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) 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 ( + 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) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline struct { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +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() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIndex) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldActions) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInteriorColor) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRotation) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetLineEndings(lineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) { + d.LineEndings = lineEndings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldLineEndings) +} + +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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode 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" +) + +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 + } + 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +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.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldR) +} + +// 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) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldG) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) 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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldInvisible) +} + +// 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) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldHidden) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) 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(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) 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 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.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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) 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 ( + 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) +} + +// 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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) 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 ( + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) 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 *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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldR) +} + +// 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 = 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) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex { + if d == nil { + return nil + } + return d.Index +} + +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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +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 + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) 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 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) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) SetX(x float64) { + d.X = x + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions `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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions { + if d == nil { + return nil + } + return d.Actions +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetOverlayText() *string { + if d == nil { + return nil + } + return d.OverlayText +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRepeat() bool { + if d == nil { + return false + } + return d.Repeat +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily { + if d == nil { + return "" + } + return d.FontFamily +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontSize() float64 { + if d == nil { + return 0 + } + return d.FontSize +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor { + if d == nil { + return nil + } + return d.FontColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign { + if d == nil { + return "" + } + return d.TextAlign +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) { + d.Ref = ref + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) 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) +} + +// 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) SetNm(nm *string) { + d.Nm = nm + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) { + d.Flags = flags + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) { + d.Rect = rect + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetContents(contents *string) { + d.Contents = contents + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetSubject(subject *string) { + d.Subject = subject + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetAuthor(author *string) { + d.Author = author + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetCreated(created *time.Time) { + d.Created = created + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetModified(modified *time.Time) { + d.Modified = modified + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode) { + d.BlendMode = blendMode + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) { + d.InReplyTo = inReplyTo + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType) { + d.ReplyType = replyType + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetUserID(userID *string) { + d.UserID = userID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetGroupID(groupID *string) { + d.GroupID = groupID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetActions(actions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) { + d.Actions = actions + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) { + d.Color = color + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOpacity) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) { + d.FontColor = fontColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontColor) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign) { + d.TextAlign = textAlign + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldTextAlign) +} + +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 { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode 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" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode, 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetR(r int) { + d.R = r + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetG(g int) { + d.G = g + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) 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 ( + 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 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetHidden(hidden bool) { + d.Hidden = hidden + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetPrint(print bool) { + d.Print = print + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoView(noView bool) { + d.NoView = noView + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetLocked(locked bool) { + d.Locked = locked + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + 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 *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 *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 ( + 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) +} + +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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) 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(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.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) error +} + +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) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +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 +} + +var ( + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration) +} + +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 + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) 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 *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) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldB = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetR(r int) { + d.R = r + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetG(g int) { + d.G = g + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP4 = big.NewInt(1 << 3) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 { + if d == nil { + return nil + } + return d.P1 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 { + if d == nil { + return nil + } + return d.P2 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 { + if d == nil { + return nil + } + return d.P3 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) 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; +// 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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldTop = big.NewInt(1 << 3) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldRight) +} + +// 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) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) 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(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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldPageObjectNumber) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber) +} + +// 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) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldGeneration) +} + +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 +} + +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) +} + +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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldNm) +} + +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 +} + +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) +} + +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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) 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 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCreated() *time.Time { + if d == nil { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) 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 { + if d == nil { + return nil + } + return d.UnrotatedRect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIndex) +} + +// 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) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIdentityQuality) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldNm) +} + +// 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) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldFlags) +} + +// 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) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRect) +} + +// 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) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldContents) +} + +// 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) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldSubject) +} + +// 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) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldAuthor) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUserID) +} + +// 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) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldGroupID) +} + +// 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) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreatedBy) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldActions) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *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 = 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 *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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem { + return &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 + } + 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldR) +} + +// 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) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldG) +} + +// 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) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) 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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldInvisible) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLocked) +} + +// 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) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldToggleNoView) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality = "weak" +) + +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) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) 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(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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) 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 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 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldIndex) +} + +// 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) { + 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) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) 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; +// 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) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldTop = big.NewInt(1 << 3) +) + +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:"-"` + + extraProperties map[string]interface{} + 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 { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) 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; +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldBottom = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldLeft) +} + +// 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldRight) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldBottom) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) 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 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) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber 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 *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.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldLeft) +} + +// 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) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldBottom) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions `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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem { + if d == nil { + return nil + } + return d.QuadPoints +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) 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) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) { + 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldQuadPoints) +} + +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 { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem { + return &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) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetR(r int) { + d.R = r + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetG(g int) { + d.G = g + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) 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 ( + 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 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetHidden(hidden bool) { + d.Hidden = hidden + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetPrint(print bool) { + d.Print = print + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoView(noView bool) { + d.NoView = noView + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetLocked(locked bool) { + d.Locked = locked + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +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 + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) error +} + +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) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) 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) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +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 *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) +} + +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 + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) 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 ( + 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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber) +} + +// 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 *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 *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) +} + +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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) 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 ( + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 { + if d == nil { + return nil + } + return d.P1 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 { + if d == nil { + return nil + } + return d.P2 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 { + if d == nil { + return nil + } + return d.P3 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetExtraProperties() map[string]interface{} { + 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetLeft(left float64) { + d.Left = left + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetBottom(bottom float64) { + d.Bottom = bottom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetRight(right float64) { + d.Right = right + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) 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(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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldIndex) +} + +// 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) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber) +} + +// 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) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType { + 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions `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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetName() *string { + if d == nil { + return nil + } + return d.Name +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect { + if d == nil { + return nil + } + return d.UnrotatedRect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldActions) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetName(name *string) { + d.Name = name + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldName) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRotation) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUnrotatedRect) +} + +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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem { + return &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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldInvisible) +} + +// 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) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldHidden) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldToggleNoView) +} + +// 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) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) 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(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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) 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 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 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldIndex) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldTop = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetLeft(left float64) { + d.Left = left + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetBottom(bottom float64) { + d.Bottom = bottom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetRight(right float64) { + d.Right = right + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) 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 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) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) 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 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) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions `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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor { + if d == nil { + return nil + } + return d.Color +} + +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.QuadPoints +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) 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) { + 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) +} + +// 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) { + 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) { + d.Actions = actions + 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldQuadPoints) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIntent) +} + +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 { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode 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" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode, 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldB = big.NewInt(1 << 2) +) + +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"` + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetHidden(hidden bool) { + d.Hidden = hidden + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetPrint(print bool) { + d.Print = print + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoView(noView bool) { + d.NoView = noView + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetLocked(locked bool) { + d.Locked = locked + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) error +} + +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) +} + +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 +} + +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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) 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 *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) +} + +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 + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) 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 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP4 = big.NewInt(1 << 3) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 { + if d == nil { + return nil + } + return d.P1 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 { + if d == nil { + return nil + } + return d.P2 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 { + if d == nil { + return nil + } + return d.P3 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) 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 *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) +} + +// 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) +} + +// 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) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetLeft(left float64) { + d.Left = left + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetBottom(bottom float64) { + d.Bottom = bottom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetRight(right float64) { + d.Right = right + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) 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(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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) 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 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) + } + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) 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 ( + 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 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) 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 *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 + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) 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 ( + 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 "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) 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 *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 "" + } + if len(d.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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldNm) +} + +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 +} + +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) +} + +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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType { + 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) 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 { + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIndex) +} + +// 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) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIdentityQuality) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldNm) +} + +// 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) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldFlags) +} + +// 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) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRect) +} + +// 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) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldContents) +} + +// 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) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldSubject) +} + +// 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) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldAuthor) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldActions) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetStateModel(stateModel *string) { + d.StateModel = stateModel + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldStateModel) +} + +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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem { + return &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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldB = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldR) +} + +// 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) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldG) +} + +// 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) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) 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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldInvisible) +} + +// 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) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldHidden) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) 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 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 + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality = "weak" +) + +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) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) 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(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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldIndex) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldTop = 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"` + + // Private bitmask of 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 *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{} { + 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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex { + 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 +} + +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 + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType { + return &d +} + +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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions `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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem { + if d == nil { + return nil + } + return d.QuadPoints +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) 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) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) { + 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldQuadPoints) +} + +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 { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + 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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem { + return &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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldB = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetR(r int) { + d.R = r + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetG(g int) { + d.G = g + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) 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 ( + 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 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(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) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +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 + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldRevision) +} + +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 +} + +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) +} + +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) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) 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 *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) +} + +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 + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) 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 ( + 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP4 = big.NewInt(1 << 3) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 { + if d == nil { + return nil + } + return d.P1 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 { + if d == nil { + return nil + } + return d.P2 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 { + if d == nil { + return nil + } + return d.P3 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) 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 *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) +} + +// 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 + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + 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), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldX) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldTop = big.NewInt(1 << 3) +) + +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 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) 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(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 + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) 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 ( + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldIndex) +} + +// 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) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber) +} + +// 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) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldPageObjectNumber) +} + +// 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 + } + *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) 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 ( + 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 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber) +} + +// 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) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType { + 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) +) + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions `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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetActions() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRawSubtypeCode() int { + if d == nil { + return 0 + } + return d.RawSubtypeCode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRawSubtypeName() *string { + if d == nil { + return nil + } + return d.RawSubtypeName +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIndex) +} + +// 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) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIdentityQuality) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldGroupID) +} + +// 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) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreatedBy) +} + +// 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) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUpdatedBy) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) { + 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(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 *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), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem { + return &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 ( + 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 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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldInvisible) +} + +// 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) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldHidden) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality = "weak" +) + +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) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) 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(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 +} + +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) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber) +} + +// 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) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldIndex) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber 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) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber) +} + +// 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 = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber) +} + +// 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) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +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:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetLeft(left float64) { + d.Left = left + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetBottom(bottom float64) { + d.Bottom = bottom + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetRight(right float64) { + d.Right = right + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) 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(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefVisitor) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldRevision = 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"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) 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 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions `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 +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode { + if d == nil { + return "" + } + 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() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontFamily() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily { + if d == nil { + return nil + } + return d.FontFamily +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontSize() *float64 { + if d == nil { + return nil + } + return d.FontSize +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor { + if d == nil { + return nil + } + return d.FontColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign { + if d == nil { + return "" + } + return d.TextAlign +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFieldFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily { + if d == nil { + return "" + } + return d.FieldFamily +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetIndex(index int) { + d.Index = index + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality) { + d.IdentityQuality = identityQuality + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetNm(nm *string) { + d.Nm = nm + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) { + d.Flags = flags + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) { + d.Rect = rect + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetContents(contents *string) { + d.Contents = contents + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetSubject(subject *string) { + d.Subject = subject + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetAuthor(author *string) { + d.Author = author + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetCreated(created *time.Time) { + d.Created = created + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetModified(modified *time.Time) { + d.Modified = modified + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode) { + d.BlendMode = blendMode + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) { + d.InReplyTo = inReplyTo + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType) { + d.ReplyType = replyType + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetUserID(userID *string) { + d.UserID = userID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetGroupID(groupID *string) { + d.GroupID = groupID + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetActions(actions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldActions) +} + +// 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) +} + +// 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) +} + +// 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"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldActivate = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldCursorEnter = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldCursorExit = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldMouseDown = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldMouseUp = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldFocus = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldBlur = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageOpen = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageClose = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageVisible = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageInvisible = big.NewInt(1 << 10) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions struct { + Activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate `json:"activate,omitempty" url:"activate,omitempty"` + CursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter `json:"cursorEnter,omitempty" url:"cursorEnter,omitempty"` + CursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit `json:"cursorExit,omitempty" url:"cursorExit,omitempty"` + MouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown `json:"mouseDown,omitempty" url:"mouseDown,omitempty"` + MouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp `json:"mouseUp,omitempty" url:"mouseUp,omitempty"` + Focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus `json:"focus,omitempty" url:"focus,omitempty"` + Blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur `json:"blur,omitempty" url:"blur,omitempty"` + PageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen `json:"pageOpen,omitempty" url:"pageOpen,omitempty"` + PageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose `json:"pageClose,omitempty" url:"pageClose,omitempty"` + PageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible `json:"pageVisible,omitempty" url:"pageVisible,omitempty"` + PageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible `json:"pageInvisible,omitempty" url:"pageInvisible,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetActivate() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate { + if d == nil { + return nil + } + return d.Activate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetCursorEnter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter { + if d == nil { + return nil + } + return d.CursorEnter +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetCursorExit() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit { + if d == nil { + return nil + } + return d.CursorExit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetMouseDown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown { + if d == nil { + return nil + } + return d.MouseDown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetMouseUp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp { + if d == nil { + return nil + } + return d.MouseUp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetFocus() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus { + if d == nil { + return nil + } + return d.Focus +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetBlur() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur { + if d == nil { + return nil + } + return d.Blur +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetPageOpen() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen { + if d == nil { + return nil + } + return d.PageOpen +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetPageClose() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose { + if d == nil { + return nil + } + return d.PageClose +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetPageVisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible { + if d == nil { + return nil + } + return d.PageVisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetPageInvisible() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible { + if d == nil { + return nil + } + return d.PageInvisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetActivate sets the Activate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetActivate(activate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) { + d.Activate = activate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldActivate) +} + +// SetCursorEnter sets the CursorEnter field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetCursorEnter(cursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) { + d.CursorEnter = cursorEnter + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldCursorEnter) +} + +// SetCursorExit sets the CursorExit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetCursorExit(cursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) { + d.CursorExit = cursorExit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldCursorExit) +} + +// SetMouseDown sets the MouseDown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetMouseDown(mouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) { + d.MouseDown = mouseDown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldMouseDown) +} + +// SetMouseUp sets the MouseUp field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetMouseUp(mouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) { + d.MouseUp = mouseUp + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldMouseUp) +} + +// SetFocus sets the Focus field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetFocus(focus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) { + d.Focus = focus + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldFocus) +} + +// SetBlur sets the Blur field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetBlur(blur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) { + d.Blur = blur + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldBlur) +} + +// SetPageOpen sets the PageOpen field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetPageOpen(pageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) { + d.PageOpen = pageOpen + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageOpen) +} + +// SetPageClose sets the PageClose field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetPageClose(pageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) { + d.PageClose = pageClose + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageClose) +} + +// SetPageVisible sets the PageVisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetPageVisible(pageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) { + d.PageVisible = pageVisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageVisible) +} + +// SetPageInvisible sets the PageInvisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) SetPageInvisible(pageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) { + d.PageInvisible = pageInvisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFieldPageInvisible) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldRoot = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldIncomplete = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldWarningFlags = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldWarnings = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible struct { + Root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot `json:"root,omitempty" url:"root,omitempty"` + Incomplete bool `json:"incomplete" url:"incomplete"` + WarningFlags int `json:"warningFlags" url:"warningFlags"` + Warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem `json:"warnings" url:"warnings"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) GetRoot() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot { + if d == nil { + return nil + } + return d.Root +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) GetIncomplete() bool { + if d == nil { + return false + } + return d.Incomplete +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) GetWarningFlags() int { + if d == nil { + return 0 + } + return d.WarningFlags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) GetWarnings() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem { + if d == nil { + return nil + } + return d.Warnings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRoot sets the Root field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) SetRoot(root *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) { + d.Root = root + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldRoot) +} + +// SetIncomplete sets the Incomplete field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) SetIncomplete(incomplete bool) { + d.Incomplete = incomplete + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldIncomplete) +} + +// SetWarningFlags sets the WarningFlags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) SetWarningFlags(warningFlags int) { + d.WarningFlags = warningFlags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldWarningFlags) +} + +// SetWarnings sets the Warnings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) SetWarnings(warnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem) { + d.Warnings = warnings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleFieldWarnings) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldType = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldSubtype = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldScript = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldNext = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot struct { + Type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType `json:"type" url:"type"` + Subtype string `json:"subtype" url:"subtype"` + Script *string `json:"script,omitempty" url:"script,omitempty"` + Next []any `json:"next" url:"next"` + + // Private bitmask of 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) GetType() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType { + if d == nil { + return "" + } + return d.Type +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) GetScript() *string { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) GetNext() []any { + if d == nil { + return nil + } + return d.Next +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetType sets the Type field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) SetType(type_ DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType) { + d.Type = type_ + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldType) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) SetSubtype(subtype string) { + d.Subtype = subtype + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldSubtype) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) SetScript(script *string) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldScript) +} + +// SetNext sets the Next field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) SetNext(next []any) { + d.Next = next + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootFieldNext) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "unknown" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGoto DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "goto" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGotoRemote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "goto-remote" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGotoEmbedded DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "goto-embedded" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeLaunch DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "launch" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeThread DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "thread" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeURI DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "uri" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeSound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "sound" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeMovie DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "movie" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeHide DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "hide" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeNamed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "named" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeSubmitForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "submit-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeResetForm DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "reset-form" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeImportData DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "import-data" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeJavascript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "javascript" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeSetOcgState DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "set-ocg-state" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeRendition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "rendition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeTransition DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "transition" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGoto3DView DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType = "goto-3d-view" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType, error) { + switch s { + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeUnknown, nil + case "goto": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGoto, nil + case "goto-remote": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGotoRemote, nil + case "goto-embedded": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGotoEmbedded, nil + case "launch": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeLaunch, nil + case "thread": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeThread, nil + case "uri": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeURI, nil + case "sound": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeSound, nil + case "movie": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeMovie, nil + case "hide": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeHide, nil + case "named": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeNamed, nil + case "submit-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeSubmitForm, nil + case "reset-form": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeResetForm, nil + case "import-data": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeImportData, nil + case "javascript": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeJavascript, nil + case "set-ocg-state": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeSetOcgState, nil + case "rendition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeRendition, nil + case "transition": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeTransition, nil + case "goto-3d-view": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeGoto3DView, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemCycleDropped DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem = "cycle-dropped" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemMalformedNext DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem = "malformed-next" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemIncomplete DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem = "incomplete" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem, error) { + switch s { + case "cycle-dropped": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemCycleDropped, nil + case "malformed-next": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemMalformedNext, nil + case "incomplete": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemIncomplete, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode 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" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode, 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 + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldB = big.NewInt(1 << 2) +) + +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"` + 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 *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 { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) 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; +// 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) +} + +// 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) 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 ( + 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 ( + 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 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) 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 { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) 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(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) 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) + } + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) 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 ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldRevision = 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 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:"-"` @@ -133546,35 +267026,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -133583,32 +267063,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldIndex) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133618,8 +267098,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex var marshaler = struct { embed }{ @@ -133629,7 +267109,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) String() string { if d == nil { return "" } @@ -133645,12 +267125,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -133662,35 +267142,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision st rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -133699,32 +267179,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133734,8 +267214,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision var marshaler = struct { embed }{ @@ -133745,7 +267225,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -133761,11 +267241,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -133776,28 +267256,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -133806,25 +267286,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133834,8 +267314,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) Unmarsha return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm var marshaler = struct { embed }{ @@ -133845,7 +267325,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) String() string { if d == nil { return "" } @@ -133861,11 +267341,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) String() } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -133876,28 +267356,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber str rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -133906,25 +267386,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133934,8 +267414,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber var marshaler = struct { embed }{ @@ -133945,7 +267425,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -133961,12 +267441,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -133978,35 +267458,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134015,32 +267495,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) requir // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetR(r int) { d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldR) } // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetG(g int) { d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldG) } // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetB(b int) { d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldB) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134050,8 +267530,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor var marshaler = struct { embed }{ @@ -134061,7 +267541,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) String() string { if d == nil { return "" } @@ -134077,13 +267557,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) String } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldTop = 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -134096,42 +267576,42 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134140,39 +267620,39 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) require(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) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldLeft) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldBottom) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldRight) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134182,8 +267662,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) UnmarshalJSON(d return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect var marshaler = struct { embed }{ @@ -134193,7 +267673,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) String() string { if d == nil { return "" } @@ -134208,44 +267688,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -134258,19 +267738,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(da } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -134280,7 +267760,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(da return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -134299,13 +267779,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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemWidgetRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -134318,7 +267798,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -134359,15 +267839,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) validate() error } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldRevision = 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 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:"-"` @@ -134376,35 +267856,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134413,32 +267893,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldIndex) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134448,8 +267928,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex var marshaler = struct { embed }{ @@ -134459,7 +267939,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) String() string { if d == nil { return "" } @@ -134475,12 +267955,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) String() st } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -134492,35 +267972,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134529,32 +268009,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134564,8 +268044,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision var marshaler = struct { embed }{ @@ -134575,7 +268055,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) String() string { if d == nil { return "" } @@ -134591,11 +268071,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) Str } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -134606,28 +268086,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134636,25 +268116,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134664,8 +268144,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm var marshaler = struct { embed }{ @@ -134675,7 +268155,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) String() string { if d == nil { return "" } @@ -134691,11 +268171,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) String() strin } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -134706,28 +268186,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134736,25 +268216,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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134764,8 +268244,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber var marshaler = struct { embed }{ @@ -134775,7 +268255,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) String() string { if d == nil { return "" } @@ -134790,63 +268270,63 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType string const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType = "group" ) -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType, error) { switch s { case "reply": - return DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeReply, nil case "group": - return DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeGroup, nil } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType { return &d } -type DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign string const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignLeft DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "left" - DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignCenter DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "center" - DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignRight DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "right" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "left" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "center" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "right" ) -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign, error) { switch s { case "left": - return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignLeft, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignLeft, nil case "center": - return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignCenter, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignCenter, nil case "right": - return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignRight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignRight, nil } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign { return &d } var ( - docAnnotationsList200ResponsePageStateFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponsePageStateFieldRevision = big.NewInt(1 << 1) - docAnnotationsList200ResponsePageStateFieldWeakAnnotationState = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemPageStateFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemPageStateFieldRevision = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemPageStateFieldWeakAnnotationState = 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"` +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:"-"` @@ -134855,35 +268335,35 @@ type DocAnnotationsList200ResponsePageState struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageState) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponsePageState) GetRevision() *DocAnnotationsList200ResponsePageStateRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetRevision() *DocAnnotationsListAll200ResponsePagesItemPageStateRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponsePageState) GetWeakAnnotationState() *DocAnnotationsList200ResponsePageStateWeakAnnotationState { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetWeakAnnotationState() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState { if d == nil { return nil } return d.WeakAnnotationState } -func (d *DocAnnotationsList200ResponsePageState) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageState) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134892,32 +268372,32 @@ func (d *DocAnnotationsList200ResponsePageState) 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 *DocAnnotationsList200ResponsePageState) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponsePageStateFieldPageObjectNumber) + 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 *DocAnnotationsList200ResponsePageState) SetRevision(revision *DocAnnotationsList200ResponsePageStateRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponsePageStateFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldRevision) } // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) { d.WeakAnnotationState = weakAnnotationState - d.require(docAnnotationsList200ResponsePageStateFieldWeakAnnotationState) + d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldWeakAnnotationState) } -func (d *DocAnnotationsList200ResponsePageState) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageState +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageState var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageState(value) + *d = DocAnnotationsListAll200ResponsePagesItemPageState(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134927,8 +268407,8 @@ func (d *DocAnnotationsList200ResponsePageState) UnmarshalJSON(data []byte) erro return nil } -func (d *DocAnnotationsList200ResponsePageState) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageState +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageState var marshaler = struct { embed }{ @@ -134938,7 +268418,7 @@ func (d *DocAnnotationsList200ResponsePageState) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageState) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) String() string { if d == nil { return "" } @@ -134954,12 +268434,12 @@ func (d *DocAnnotationsList200ResponsePageState) String() string { } var ( - docAnnotationsList200ResponsePageStateRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponsePageStateRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponsePageStateRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponsePageStateRevision struct { +type DocAnnotationsListAll200ResponsePagesItemPageStateRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -134971,35 +268451,35 @@ type DocAnnotationsList200ResponsePageStateRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135008,32 +268488,32 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) require(field *big.Int) // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponsePageStateRevisionFieldDocSessionID) + 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 *DocAnnotationsList200ResponsePageStateRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponsePageStateRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldPageObjectNumber) } // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponsePageStateRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponsePageStateRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageStateRevision +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageStateRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemPageStateRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135043,8 +268523,8 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) UnmarshalJSON(data []by return nil } -func (d *DocAnnotationsList200ResponsePageStateRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageStateRevision +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageStateRevision var marshaler = struct { embed }{ @@ -135054,7 +268534,7 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageStateRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) String() string { if d == nil { return "" } @@ -135069,36 +268549,36 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponsePageStateWeakAnnotationState struct { +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState struct { Kind string - Unknown *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - Known *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + Unknown *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + Known *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetUnknown() *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetUnknown() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown { if d == nil { return nil } return d.Unknown } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetKnown() *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetKnown() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown { if d == nil { return nil } return d.Known } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -135111,13 +268591,13 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) UnmarshalJSO } switch unmarshaler.Kind { case "unknown": - value := new(DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) + value := new(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } d.Unknown = value case "known": - value := new(DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) + value := new(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -135127,7 +268607,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) UnmarshalJSO return nil } -func (d DocAnnotationsList200ResponsePageStateWeakAnnotationState) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -135143,12 +268623,12 @@ func (d DocAnnotationsList200ResponsePageStateWeakAnnotationState) MarshalJSON() return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponsePageStateWeakAnnotationStateVisitor interface { - VisitUnknown(*DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) error - VisitKnown(*DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) error +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateVisitor interface { + VisitUnknown(*DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) error + VisitKnown(*DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) error } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) Accept(visitor DocAnnotationsList200ResponsePageStateWeakAnnotationStateVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) Accept(visitor DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateVisitor) error { if d.Unknown != nil { return visitor.VisitUnknown(d.Unknown) } @@ -135158,7 +268638,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) Accept(visit return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -135196,10 +268676,10 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) validate() e } var ( - docAnnotationsList200ResponsePageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown struct { +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown struct { HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -135209,21 +268689,21 @@ type DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { return false } return d.HasAnyWeakAnnotations } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135232,18 +268712,18 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) require // 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) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docAnnotationsList200ResponsePageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) + d.require(docAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(value) + *d = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135253,8 +268733,8 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) Unmarsh return nil } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown var marshaler = struct { embed }{ @@ -135264,7 +268744,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -135279,7 +268759,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) String( return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown struct { +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -135288,27 +268768,27 @@ type DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) 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 +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(value) + *d = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135318,8 +268798,8 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) Unmar return nil } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -135329,7 +268809,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -135345,17 +268825,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) + docAnnotationsListAll404ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsListAll404ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsListAll404ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsListAll404ResponseFieldDetails = 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 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:"-"` @@ -135364,42 +268844,42 @@ type DocAnnotationsList404Response struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList404Response) GetName() DocAnnotationsList404ResponseName { +func (d *DocAnnotationsListAll404Response) GetName() DocAnnotationsListAll404ResponseName { if d == nil { return "" } return d.Name } -func (d *DocAnnotationsList404Response) GetCode() DocAnnotationsList404ResponseCode { +func (d *DocAnnotationsListAll404Response) GetCode() DocAnnotationsListAll404ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocAnnotationsList404Response) GetMessage() string { +func (d *DocAnnotationsListAll404Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocAnnotationsList404Response) GetDetails() map[string]any { +func (d *DocAnnotationsListAll404Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocAnnotationsList404Response) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList404Response) require(field *big.Int) { +func (d *DocAnnotationsListAll404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135408,39 +268888,39 @@ func (d *DocAnnotationsList404Response) 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 *DocAnnotationsList404Response) SetName(name DocAnnotationsList404ResponseName) { +func (d *DocAnnotationsListAll404Response) SetName(name DocAnnotationsListAll404ResponseName) { d.Name = name - d.require(docAnnotationsList404ResponseFieldName) + d.require(docAnnotationsListAll404ResponseFieldName) } // 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) { +func (d *DocAnnotationsListAll404Response) SetCode(code DocAnnotationsListAll404ResponseCode) { d.Code = code - d.require(docAnnotationsList404ResponseFieldCode) + d.require(docAnnotationsListAll404ResponseFieldCode) } // 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) { +func (d *DocAnnotationsListAll404Response) SetMessage(message string) { d.Message = message - d.require(docAnnotationsList404ResponseFieldMessage) + d.require(docAnnotationsListAll404ResponseFieldMessage) } // 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) { +func (d *DocAnnotationsListAll404Response) SetDetails(details map[string]any) { d.Details = details - d.require(docAnnotationsList404ResponseFieldDetails) + d.require(docAnnotationsListAll404ResponseFieldDetails) } -func (d *DocAnnotationsList404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList404Response +func (d *DocAnnotationsListAll404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList404Response(value) + *d = DocAnnotationsListAll404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135450,8 +268930,8 @@ func (d *DocAnnotationsList404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsList404Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList404Response +func (d *DocAnnotationsListAll404Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll404Response var marshaler = struct { embed }{ @@ -135461,7 +268941,7 @@ func (d *DocAnnotationsList404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList404Response) String() string { +func (d *DocAnnotationsListAll404Response) String() string { if d == nil { return "" } @@ -135476,95 +268956,319 @@ func (d *DocAnnotationsList404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList404ResponseCode string +type DocAnnotationsListAll404ResponseCode 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" + 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" +) + +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 + } + var t DocAnnotationsListAll404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll404ResponseCode) Ptr() *DocAnnotationsListAll404ResponseCode { + return &d +} + +type DocAnnotationsListAll404ResponseName string + +const ( + DocAnnotationsListAll404ResponseNameEngineError DocAnnotationsListAll404ResponseName = "EngineError" ) -func NewDocAnnotationsList404ResponseCodeFromString(s string) (DocAnnotationsList404ResponseCode, error) { +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) +} + +func (d DocAnnotationsListAll404ResponseName) Ptr() *DocAnnotationsListAll404ResponseName { + return &d +} + +var ( + docAnnotationsListAll409ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsListAll409ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsListAll409ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsListAll409ResponseFieldDetails = big.NewInt(1 << 3) +) + +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"` + + // Private bitmask of 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 *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 { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocAnnotationsListAll409Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll409Response) 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; +// 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 *DocAnnotationsListAll409Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll409Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll409Response(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll409Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll409Response + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll409Response) 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 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" +) + +func NewDocAnnotationsListAll409ResponseCodeFromString(s string) (DocAnnotationsListAll409ResponseCode, error) { switch s { case "Unknown": - return DocAnnotationsList404ResponseCodeUnknown, nil + return DocAnnotationsListAll409ResponseCodeUnknown, nil case "InvalidArg": - return DocAnnotationsList404ResponseCodeInvalidArg, nil + return DocAnnotationsListAll409ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocAnnotationsList404ResponseCodeDocNotOpen, nil + return DocAnnotationsListAll409ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocAnnotationsList404ResponseCodeDocOpenFailed, nil + return DocAnnotationsListAll409ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocAnnotationsList404ResponseCodeDocPasswordRequired, nil + return DocAnnotationsListAll409ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocAnnotationsList404ResponseCodeDocPasswordIncorrect, nil + return DocAnnotationsListAll409ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocAnnotationsList404ResponseCodeSharePasswordRequired, nil + return DocAnnotationsListAll409ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocAnnotationsList404ResponseCodeAborted, nil + return DocAnnotationsListAll409ResponseCodeAborted, nil case "Network": - return DocAnnotationsList404ResponseCodeNetwork, nil + return DocAnnotationsListAll409ResponseCodeNetwork, nil case "Unauthenticated": - return DocAnnotationsList404ResponseCodeUnauthenticated, nil + return DocAnnotationsListAll409ResponseCodeUnauthenticated, nil case "Forbidden": - return DocAnnotationsList404ResponseCodeForbidden, nil + return DocAnnotationsListAll409ResponseCodeForbidden, nil case "NotFound": - return DocAnnotationsList404ResponseCodeNotFound, nil + return DocAnnotationsListAll409ResponseCodeNotFound, nil case "WireFormat": - return DocAnnotationsList404ResponseCodeWireFormat, nil + return DocAnnotationsListAll409ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocAnnotationsList404ResponseCodeRuntimeUnavailable, nil + return DocAnnotationsListAll409ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocAnnotationsList404ResponseCodeInvalidReference, nil + return DocAnnotationsListAll409ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocAnnotationsList404ResponseCodeWeakAnnotationSessionConflict, nil + return DocAnnotationsListAll409ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocAnnotationsList404ResponseCodeLayerVersionConflict, nil + return DocAnnotationsListAll409ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocAnnotationsList404ResponseCodeNotImplemented, nil + return DocAnnotationsListAll409ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocAnnotationsList404ResponseCodeMalformedPdf, nil + return DocAnnotationsListAll409ResponseCodeMalformedPdf, nil } - var t DocAnnotationsList404ResponseCode + var t DocAnnotationsListAll409ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList404ResponseCode) Ptr() *DocAnnotationsList404ResponseCode { +func (d DocAnnotationsListAll409ResponseCode) Ptr() *DocAnnotationsListAll409ResponseCode { return &d } -type DocAnnotationsList404ResponseName string +type DocAnnotationsListAll409ResponseName string const ( - DocAnnotationsList404ResponseNameEngineError DocAnnotationsList404ResponseName = "EngineError" + DocAnnotationsListAll409ResponseNameEngineError DocAnnotationsListAll409ResponseName = "EngineError" ) -func NewDocAnnotationsList404ResponseNameFromString(s string) (DocAnnotationsList404ResponseName, error) { +func NewDocAnnotationsListAll409ResponseNameFromString(s string) (DocAnnotationsListAll409ResponseName, error) { switch s { case "EngineError": - return DocAnnotationsList404ResponseNameEngineError, nil + return DocAnnotationsListAll409ResponseNameEngineError, nil } - var t DocAnnotationsList404ResponseName + var t DocAnnotationsListAll409ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList404ResponseName) Ptr() *DocAnnotationsList404ResponseName { +func (d DocAnnotationsListAll409ResponseName) Ptr() *DocAnnotationsListAll409ResponseName { return &d } @@ -136267,12 +269971,14 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState var ( docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docAnnotationsUpdate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocAnnotationsUpdate200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -136296,6 +270002,13 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetPages() []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -136331,6 +270044,13 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetDocVersion(docVersion d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldDocVersion) } +// 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) +} + // 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) { @@ -166282,12 +300002,14 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUn var ( docFormsImportData200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docFormsImportData200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docFormsImportData200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docFormsImportData200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docFormsImportData200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocFormsImportData200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -166311,6 +300033,13 @@ func (d *DocFormsImportData200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocFormsImportData200ResponseMetaCacheDelta) GetPages() []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -166346,6 +300075,13 @@ func (d *DocFormsImportData200ResponseMetaCacheDelta) SetDocVersion(docVersion i 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) +} + // 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) { @@ -167744,12 +301480,14 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var ( docFormsReset200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docFormsReset200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docFormsReset200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docFormsReset200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docFormsReset200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocFormsReset200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -167773,6 +301511,13 @@ func (d *DocFormsReset200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocFormsReset200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocFormsReset200ResponseMetaCacheDelta) GetPages() []*DocFormsReset200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -167808,6 +301553,13 @@ func (d *DocFormsReset200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { 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) +} + // 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) { @@ -168980,12 +302732,14 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkn var ( docFormsSetValue200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docFormsSetValue200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docFormsSetValue200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docFormsSetValue200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docFormsSetValue200ResponseMetaCacheDeltaFieldPages = 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"` Pages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -169009,6 +302763,13 @@ func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetPages() []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -169044,6 +302805,13 @@ func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetDocVersion(docVersion int 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 *DocFormsSetValue200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + // 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 *DocFormsSetValue200ResponseMetaCacheDelta) SetPages(pages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) { @@ -171379,12 +305147,14 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow var ( docPagesDelete200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docPagesDelete200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesDelete200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docPagesDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesDelete200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocPagesDelete200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -171408,6 +305178,13 @@ func (d *DocPagesDelete200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocPagesDelete200ResponseMetaCacheDelta) GetPages() []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -171443,6 +305220,13 @@ func (d *DocPagesDelete200ResponseMetaCacheDelta) SetDocVersion(docVersion int) d.require(docPagesDelete200ResponseMetaCacheDeltaFieldDocVersion) } +// 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) +} + // 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) { @@ -173291,12 +307075,14 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno var ( docPagesFlatten200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docPagesFlatten200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesFlatten200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docPagesFlatten200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesFlatten200ResponseMetaCacheDeltaFieldPages = 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"` Pages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -173320,6 +307106,13 @@ func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetPages() []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -173355,6 +307148,13 @@ func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetDocVersion(docVersion int) d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldDocVersion) } +// 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 *DocPagesFlatten200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + // 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) { @@ -174753,12 +308553,14 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow var ( docPagesInsert200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docPagesInsert200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesInsert200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docPagesInsert200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesInsert200ResponseMetaCacheDeltaFieldPages = 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"` Pages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -174782,6 +308584,13 @@ func (d *DocPagesInsert200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocPagesInsert200ResponseMetaCacheDelta) GetPages() []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -174817,6 +308626,13 @@ func (d *DocPagesInsert200ResponseMetaCacheDelta) SetDocVersion(docVersion int) 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 *DocPagesInsert200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + // 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 *DocPagesInsert200ResponseMetaCacheDelta) SetPages(pages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem) { @@ -176213,12 +310029,14 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateU var ( docPagesInsertBlank200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docPagesInsertBlank200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesInsertBlank200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldPages = 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"` Pages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -176242,6 +310060,13 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetPages() []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -176277,6 +310102,13 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetDocVersion(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) +} + // 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 *DocPagesInsertBlank200ResponseMetaCacheDelta) SetPages(pages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) { @@ -177675,12 +311507,14 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) var ( docPagesMove200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docPagesMove200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesMove200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docPagesMove200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesMove200ResponseMetaCacheDeltaFieldPages = 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"` Pages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -177704,6 +311538,13 @@ func (d *DocPagesMove200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocPagesMove200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocPagesMove200ResponseMetaCacheDelta) GetPages() []*DocPagesMove200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -177739,6 +311580,13 @@ func (d *DocPagesMove200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { 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) +} + // 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 *DocPagesMove200ResponseMetaCacheDelta) SetPages(pages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem) { @@ -179137,12 +312985,14 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow var ( docPagesRotate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docPagesRotate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesRotate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docPagesRotate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesRotate200ResponseMetaCacheDeltaFieldPages = 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"` Pages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -179166,6 +313016,13 @@ func (d *DocPagesRotate200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocPagesRotate200ResponseMetaCacheDelta) GetPages() []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -179201,6 +313058,13 @@ func (d *DocPagesRotate200ResponseMetaCacheDelta) SetDocVersion(docVersion int) 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) +} + // 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 *DocPagesRotate200ResponseMetaCacheDelta) SetPages(pages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem) { @@ -180599,12 +314463,14 @@ func (d *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUn var ( docRedactionsApply200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) docRedactionsApply200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docRedactionsApply200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 2) + docRedactionsApply200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docRedactionsApply200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 3) ) type DocRedactionsApply200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` Pages []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -180628,6 +314494,13 @@ func (d *DocRedactionsApply200ResponseMetaCacheDelta) GetDocVersion() int { return d.DocVersion } +func (d *DocRedactionsApply200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + func (d *DocRedactionsApply200ResponseMetaCacheDelta) GetPages() []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil @@ -180663,6 +314536,13 @@ func (d *DocRedactionsApply200ResponseMetaCacheDelta) SetDocVersion(docVersion i d.require(docRedactionsApply200ResponseMetaCacheDeltaFieldDocVersion) } +// 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 *DocRedactionsApply200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docRedactionsApply200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + // 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 *DocRedactionsApply200ResponseMetaCacheDelta) SetPages(pages []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem) { diff --git a/types_test.go b/types_test.go index 1865ca4..6b39799 100644 --- a/types_test.go +++ b/types_test.go @@ -1048,6 +1048,14 @@ func TestSettersDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetPages", func(t *testing.T) { obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} var fernTestValuePages []*DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem @@ -1105,6 +1113,39 @@ func TestGettersDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { _ = obj.GetDocVersion() // Should return zero value }) + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsCreate200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { t.Parallel() // Arrange @@ -1203,6 +1244,37 @@ func TestSettersMarkExplicitDocAnnotationsCreate200ResponseMetaCacheDelta(t *tes // 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 := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange @@ -2870,6 +2942,14 @@ func TestSettersDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetPages", func(t *testing.T) { obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} var fernTestValuePages []*DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem @@ -2927,6 +3007,39 @@ func TestGettersDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { _ = obj.GetDocVersion() // Should return zero value }) + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsDelete200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { t.Parallel() // Arrange @@ -3025,6 +3138,37 @@ func TestSettersMarkExplicitDocAnnotationsDelete200ResponseMetaCacheDelta(t *tes // 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 := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange @@ -4472,6 +4616,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemCaret{} var fernTestValueAuthor *string @@ -4845,6 +4997,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaret + // Should not 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 @@ -5637,6 +5822,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemCaret(t // 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 := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + 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 @@ -16303,6 +16519,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemCircle{} var fernTestValueAuthor *string @@ -16708,6 +16932,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircle + // Should not 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 @@ -17612,14 +17869,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemCircle(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17643,14 +17900,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemCircle(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17674,14 +17931,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemCircle(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17705,14 +17962,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemCircle(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17736,14 +17993,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemCircle(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + 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 := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -28597,6 +28885,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *te assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} var fernTestValueAuthor *string @@ -28954,6 +29250,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *te _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachment + // Should not 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 @@ -29670,6 +29999,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemFileAtta // 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 := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + 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 @@ -40191,6 +40551,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing. assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} var fernTestValueAuthor *string @@ -40644,6 +41012,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing. _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeText + // Should not 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 @@ -41706,6 +42107,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemFreeText // 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 := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + 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 @@ -53072,6 +53504,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} var fernTestValueAuthor *string @@ -53421,6 +53861,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlight + // Should not 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 @@ -54114,14 +54587,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54145,14 +54618,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54176,14 +54649,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54207,14 +54680,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54238,14 +54711,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54269,14 +54742,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemHighlightReplyType + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyTo // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54300,14 +54773,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemHighligh // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - var fernTestValueUserID *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemHighlightReplyType // Act - obj.SetUserID(fernTestValueUserID) + 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 := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -65002,6 +65506,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemInk{} var fernTestValueAuthor *string @@ -65391,6 +65903,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemInk{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInk + // Should not 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 @@ -66229,6 +66774,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemInk(t *t // 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 := &DocAnnotationsList200ResponseAnnotationsItemInk{} + 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 @@ -76576,6 +77152,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemLine{} var fernTestValueAuthor *string @@ -76973,6 +77557,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemLine{} + 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 *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.GetSubject() // Should return zero value + }) + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange @@ -77844,6 +78461,37 @@ 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.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + 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 @@ -88836,6 +89484,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { 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 @@ -89169,6 +89825,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { _ = 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 @@ -89806,14 +90495,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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89837,14 +90526,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89868,14 +90557,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89899,14 +90588,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("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89930,14 +90619,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("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89961,14 +90650,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("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89992,14 +90681,45 @@ 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("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueUserID *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType // Act - obj.SetUserID(fernTestValueUserID) + 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 := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -101840,6 +102560,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T assert.NotNil(t, obj.explicitFields) }) + 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) + }) + t.Run("SetAuthor", func(t *testing.T) { obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueAuthor *string @@ -102237,6 +102965,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T _ = 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 @@ -103108,6 +103869,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // 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 := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + 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 @@ -113681,6 +114473,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. 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 @@ -114078,6 +114878,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + 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 := &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.GetSubject() // Should return zero value + }) + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange @@ -114949,6 +115782,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // 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 + + // 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 @@ -125655,6 +126519,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) 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 @@ -126060,6 +126932,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) _ = 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 @@ -126944,14 +127849,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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126975,14 +127880,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127006,14 +127911,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("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127037,14 +127942,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("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127068,14 +127973,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("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127099,14 +128004,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("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127130,14 +128035,45 @@ 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("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueUserID *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType // Act - obj.SetUserID(fernTestValueUserID) + 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) @@ -138439,6 +139375,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) 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 @@ -138844,6 +139788,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) _ = 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 @@ -139748,6 +140725,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // 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 @@ -150733,6 +151741,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing. 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 @@ -151082,6 +152098,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing. _ = 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 @@ -151775,6 +152824,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // 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 @@ -162663,6 +163743,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) 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 @@ -163012,6 +164100,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) _ = 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 @@ -163715,14 +164836,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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -163746,14 +164867,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -163777,14 +164898,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("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -163808,14 +164929,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("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -163839,14 +164960,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("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -163870,14 +164991,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -163901,14 +165022,45 @@ 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("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUserID *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType // Act - obj.SetUserID(fernTestValueUserID) + 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) @@ -173836,6 +174988,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing 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 @@ -174193,6 +175353,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing _ = 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 @@ -174919,6 +176112,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // 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 @@ -185838,6 +187062,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueAuthor *string @@ -185950,6 +187182,22 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + } func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { @@ -186187,6 +187435,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemText{} + 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 *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.GetSubject() // Should return zero value + }) + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange @@ -186619,6 +187900,72 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { _ = obj.GetIcon() // Should return zero value }) + t.Run("GetState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemText{} + 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 *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.GetState() // Should return zero value + }) + + t.Run("GetStateModel", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *string + obj.StateModel = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStateModel(), "getter should return the property value") + }) + + t.Run("GetStateModel_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.StateModel = nil + + // Act & Assert + assert.Nil(t, obj.GetStateModel(), "getter should return nil when property is nil") + }) + + t.Run("GetStateModel_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.GetStateModel() // Should return zero value + }) + } func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { @@ -186870,14 +188217,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -186901,14 +188248,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -186932,14 +188279,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -186963,14 +188310,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -186994,14 +188341,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187025,14 +188372,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187056,14 +188403,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueUserID *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType // Act - obj.SetUserID(fernTestValueUserID) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187087,14 +188434,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueGroupID *string + var fernTestValueUserID *string // Act - obj.SetGroupID(fernTestValueGroupID) + 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 := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187304,6 +188682,68 @@ 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.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 TestSettersDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { @@ -196929,6 +198369,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing 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 @@ -197278,6 +198726,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + 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 *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 @@ -197971,6 +199452,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // 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 := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + 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 @@ -208859,6 +210371,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi 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 @@ -209200,6 +210720,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + 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 := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + 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 *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 + }) + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange @@ -209860,14 +211413,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueAuthor *string + var fernTestValueSubject *string // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209891,14 +211444,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueCreated *time.Time + var fernTestValueAuthor *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209922,14 +211475,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueModified *time.Time + var fernTestValueCreated *time.Time // Act - obj.SetModified(fernTestValueModified) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209953,14 +211506,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + var fernTestValueModified *time.Time // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209984,14 +211537,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210015,14 +211568,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210046,14 +211599,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueUserID *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType // Act - obj.SetUserID(fernTestValueUserID) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210077,14 +211630,14 @@ 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("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueGroupID *string + var fernTestValueUserID *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210108,14 +211661,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("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueCreatedBy *string + var fernTestValueGroupID *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210139,14 +211692,45 @@ 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("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueUpdatedBy *string + var fernTestValueCreatedBy *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + 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 := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -219693,6 +221277,14 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) assert.NotNil(t, obj.explicitFields) }) + 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("SetAuthor", func(t *testing.T) { obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} var fernTestValueAuthor *string @@ -220098,6 +221690,39 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) _ = obj.GetContents() // Should return zero value }) + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + 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 := &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.GetSubject() // Should return zero value + }) + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange @@ -220982,6 +222607,37 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // 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 := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + 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 @@ -232423,62 +234079,134 @@ func TestSettersMarkExplicitDocAnnotationsList404Response(t *testing.T) { } -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) +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("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 TestGettersDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200Response(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200Response{} - var expected *DocAnnotationsUpdate200ResponseMeta - obj.Meta = expected + obj := &DocAnnotationsListAll200Response{} + var expected []*DocAnnotationsListAll200ResponsePagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200Response{} + obj.Pages = nil // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200Response + 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.GetMeta() // Should return zero value + _ = 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") + }) + + t.Run("GetAuditHead_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200Response{} + obj.AuditHead = nil + + // Act & Assert + assert.Nil(t, obj.GetAuditHead(), "getter should return nil when property is nil") + }) + + t.Run("GetAuditHead_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAuditHead() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200Response(t *testing.T) { + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200Response{} - var fernTestValueMeta *DocAnnotationsUpdate200ResponseMeta + obj := &DocAnnotationsListAll200Response{} + var fernTestValuePages []*DocAnnotationsListAll200ResponsePagesItem // Act - obj.SetMeta(fernTestValueMeta) + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuditHead_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200Response{} + var fernTestValueAuditHead *int + + // Act + obj.SetAuditHead(fernTestValueAuditHead) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -232504,103 +234232,103 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200Response(t *testing.T) { } -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) +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("SetCacheDelta", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + 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 TestGettersDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("GetPageState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var expected []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemPageState + obj.PageState = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageState(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetPageState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItem{} + obj.PageState = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageState(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetPageState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMeta + 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.GetAffectedPages() // Should return zero value + _ = obj.GetPageState() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var expected *DocAnnotationsUpdate200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + obj.Annotations = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotations(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetAnnotations_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItem{} + obj.Annotations = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAnnotations(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMeta + 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.GetCacheDelta() // Should return zero value + _ = obj.GetAnnotations() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("SetPageState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueAffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var fernTestValuePageState *DocAnnotationsListAll200ResponsePagesItemPageState // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetPageState(fernTestValuePageState) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -232624,14 +234352,14 @@ 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) { + t.Run("SetAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var fernTestValueAnnotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetAnnotations(fernTestValueAnnotations) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -232657,808 +234385,908 @@ 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItem(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected string + obj.Subtype = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property 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("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 -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Highlight = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetHighlight(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetHighlight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + 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.GetHighlight() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetUnderline", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + obj.Underline = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnderline(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetUnderline_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Underline = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnderline(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetUnderline_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + 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.GetUnderline() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetSquiggly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + obj.Squiggly = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSquiggly(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetSquiggly_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Squiggly = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSquiggly(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetSquiggly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + 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.GetWeakAnnotationState() // Should return zero value + _ = obj.GetSquiggly() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetStrikeout", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + obj.Strikeout = 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.GetStrikeout(), "getter should return the property value") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetStrikeout_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Strikeout = nil - // Act - obj.SetRevision(fernTestValueRevision) + // Act & Assert + assert.Nil(t, obj.GetStrikeout(), "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("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 + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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("GetCircle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + obj.Circle = 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.GetCircle(), "getter should return the property value") }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("GetCircle_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Circle = nil - // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + // Act & Assert + assert.Nil(t, obj.GetCircle(), "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("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 + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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("GetSquare", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + obj.Square = 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.GetSquare(), "getter should return the property value") }) -} + t.Run("GetSquare_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Square = nil -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) + // Act & Assert + assert.Nil(t, obj.GetSquare(), "getter should return nil when property is nil") }) - 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("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("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - 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") + }) -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetPolygon_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Polygon = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetPolygon(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetPolygon_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + 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.GetPolygon() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetPolyline", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + obj.Polyline = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPolyline(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPolyline_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Polyline = nil + + // Act & Assert + assert.Nil(t, obj.GetPolyline(), "getter should return nil when property is nil") + }) + + 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.GetPageObjectNumber() // Should return zero value + _ = obj.GetPolyline() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetLine", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + obj.Line = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLine(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetLine_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Line = nil + + // Act & Assert + assert.Nil(t, obj.GetLine(), "getter should return nil when property is nil") + }) + + 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.GetGeneration() // Should return zero value + _ = obj.GetLine() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("GetLink", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + obj.Link = 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.GetLink(), "getter should return the property value") }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetLink_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Link = nil - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Nil(t, obj.GetLink(), "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("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 + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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("GetInk", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + obj.Ink = 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.GetInk(), "getter should return the property value") }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("GetInk_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Ink = nil - // Act - obj.SetGeneration(fernTestValueGeneration) + // Act & Assert + assert.Nil(t, obj.GetInk(), "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("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.GetInk() // 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("GetFreeText", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + obj.FreeText = 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.GetFreeText(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetFreeText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.FreeText = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetFreeText(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetFreeText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetFreeText() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetCaret", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + obj.Caret = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCaret(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetCaret_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Caret = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCaret(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetCaret_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetUnknown() // Should return zero value + _ = obj.GetCaret() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetText", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + obj.Text = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetText(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Text = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetText(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetKnown() // Should return zero value + _ = obj.GetText() // Should return zero value }) -} + t.Run("GetStamp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + obj.Stamp = 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.GetStamp(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetStamp_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Stamp = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetStamp(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetStamp_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetStamp() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("GetFileAttachment", 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") - } + 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("GetFileAttachment_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.FileAttachment = nil -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.Nil(t, obj.GetFileAttachment(), "getter should return nil when property is nil") }) - 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("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("SetPages", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - 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 TestGettersDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Run("GetWidget_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Widget = nil // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Nil(t, obj.GetWidget(), "getter should return nil when property is nil") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetWidget_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + 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.GetPreviousDocVersion() // Should return zero value + _ = obj.GetWidget() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetRedact", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + obj.Redact = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRedact(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetRedact_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + // 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.GetDocVersion() // Should return zero value + _ = obj.GetRedact() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + obj.Unsupported = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Unsupported = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + 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.GetPages() // Should return zero value + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int +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) + }) - // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + 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) + }) - // Assert - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + 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) + }) - // Act - obj.SetDocVersion(fernTestValueDocVersion) + 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) + }) - // Assert - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + 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) + }) - // Act - obj.SetPages(fernTestValuePages) + 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) + }) - // Assert - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + 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 := &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) + }) -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) + 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("SetCache", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + 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 TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +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") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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 + }) + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected int obj.PageObjectNumber = expected @@ -233468,7 +235296,7 @@ func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233478,922 +235306,769 @@ func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testin _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var expected *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetIndex_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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + 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.GetCache() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - - // Act - obj.SetCache(fernTestValueCache) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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") }) -} - -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("GetNm_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.GetNm() // Should return zero value }) - 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) - }) + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + obj.Flags = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) -func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Flags = nil // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + 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.GetContentVersion() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetAnnotationVersion() // Should return zero value + _ = obj.GetRect() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - 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 - }) - -} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Contents = nil -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) + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - 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("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 }) - 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("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *string + obj.Subject = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected DocAnnotationsUpdate400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *DocAnnotationsUpdate400Response + 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.GetName() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected DocAnnotationsUpdate400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetCode() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *time.Time + obj.Created = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetMessage() // Should return zero value + _ = obj.GetCreated() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Modified = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate400Response + 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.GetDetails() // Should return zero value + _ = obj.GetModified() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueName DocAnnotationsUpdate400ResponseName - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode + 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 *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 }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueCode DocAnnotationsUpdate400ResponseCode - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + 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("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetInReplyTo() // Should return zero value }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType + 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("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.ReplyType = nil -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) + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") }) - 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("GetReplyType_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.GetReplyType() // 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("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *string + obj.UserID = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected DocAnnotationsUpdate404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.UserID = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + 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.GetName() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected DocAnnotationsUpdate404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *string + obj.GroupID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetCode() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetMessage() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.UpdatedBy = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + 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.GetDetails() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueName DocAnnotationsUpdate404ResponseName - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + 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("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetActions_NilValue", 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetActions() // Should return zero value }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetColor", 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") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + 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("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Color = 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.GetColor(), "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("GetColor_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.GetColor() // Should return zero value }) -} + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected float64 + obj.Opacity = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - 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("GetOpacity_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.GetOpacity() // Should return zero value }) - 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("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent + obj.Intent = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) -} - -func TestGettersDocDownloadResponse(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected DocDownloadResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Intent = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + 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.GetName() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetRectDifferences", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected DocDownloadResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + obj.RectDifferences = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetCode() // Should return zero value + _ = obj.GetRectDifferences() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *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.GetMessage() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetUnrotatedRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + obj.UnrotatedRect = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.UnrotatedRect = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + 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.GetDetails() // Should return zero value + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueName DocDownloadResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Act - obj.SetName(fernTestValueName) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234417,14 +236092,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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueCode DocDownloadResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValuePageObjectNumber int // Act - obj.SetCode(fernTestValueCode) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234448,14 +236123,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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIndex int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234479,14 +236154,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("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality // Act - obj.SetDetails(fernTestValueDetails) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234510,157 +236185,45 @@ func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 := &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.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueNm *string - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) + // Act + obj.SetNm(fernTestValueNm) - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsExportDataResponse{} - 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 *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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueName DocFormsExportDataResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Act - obj.SetName(fernTestValueName) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234684,14 +236247,14 @@ func TestSettersMarkExplicitDocFormsExportDataResponse(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("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueCode DocFormsExportDataResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect // Act - obj.SetCode(fernTestValueCode) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234715,14 +236278,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("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueContents *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234746,14 +236309,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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueSubject *string // Act - obj.SetDetails(fernTestValueDetails) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234777,167 +236340,14 @@ func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 := &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.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueFormKind DocFormsGet200ResponseFormKind + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueAuthor *string // Act - obj.SetFormKind(fernTestValueFormKind) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234961,14 +236371,14 @@ 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.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueNeedsAppearances bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueCreated *time.Time // Act - obj.SetNeedsAppearances(fernTestValueNeedsAppearances) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234992,14 +236402,14 @@ func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFields_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueFields []*DocFormsGet200ResponseFieldsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueModified *time.Time // Act - obj.SetFields(fernTestValueFields) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -235023,14 +236433,14 @@ func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculationOrder_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueCalculationOrder []*DocFormsGet200ResponseCalculationOrderItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode // Act - obj.SetCalculationOrder(fernTestValueCalculationOrder) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -235054,146 +236464,107 @@ func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsGet200ResponseCalculationOrderItem(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) - 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 - }) + // Assert - 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", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - var expected *DocFormsGet200ResponseCalculationOrderItemObjectNumber - obj.ObjectNumber = 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.GetObjectNumber(), "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("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) + // Act + obj.SetReplyType(fernTestValueReplyType) - t.Run("GetObjectNumber_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.GetObjectNumber() // 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("GetFqn", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - var expected *DocFormsGet200ResponseCalculationOrderItemFqn - obj.Fqn = 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.GetFqn(), "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("GetFqn_NilValue", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // 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.GetFqn() // 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) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueUserID *string -} + // Act + obj.SetUserID(fernTestValueUserID) -func TestGettersDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} - var expected string - obj.Name = 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.GetName(), "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("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetName() // 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 TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueGroupID *string // Act - obj.SetName(fernTestValueName) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -235217,54 +236588,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemFqn(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 := &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.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueCreatedBy *string // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -235288,796 +236619,722 @@ func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemObjectNumb // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemText - obj.Text = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueUpdatedBy *string - // Act & Assert - assert.Equal(t, expected, obj.GetText(), "getter should return the property value") - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) - t.Run("GetText_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Text = 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.GetText(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCheckbox", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemCheckbox - obj.Checkbox = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions - // Act & Assert - assert.Equal(t, expected, obj.GetCheckbox(), "getter should return the property value") - }) + // Act + obj.SetActions(fernTestValueActions) - t.Run("GetCheckbox_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Checkbox = 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.GetCheckbox(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRadio", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemRadio - obj.Radio = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor - // Act & Assert - assert.Equal(t, expected, obj.GetRadio(), "getter should return the property value") - }) + // Act + obj.SetColor(fernTestValueColor) - t.Run("GetRadio_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Radio = 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.GetRadio(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCombobox", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemCombobox - obj.Combobox = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueOpacity float64 - // Act & Assert - assert.Equal(t, expected, obj.GetCombobox(), "getter should return the property value") - }) + // Act + obj.SetOpacity(fernTestValueOpacity) - t.Run("GetCombobox_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Combobox = 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.GetCombobox(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetListbox", func(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemListbox - obj.Listbox = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent - // Act & Assert - assert.Equal(t, expected, obj.GetListbox(), "getter should return the property value") - }) + // Act + obj.SetIntent(fernTestValueIntent) - t.Run("GetListbox_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Listbox = 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.GetListbox(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPushbutton", func(t *testing.T) { + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemPushbutton - obj.Pushbutton = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - // Act & Assert - assert.Equal(t, expected, obj.GetPushbutton(), "getter should return the property value") - }) + // Act + obj.SetRectDifferences(fernTestValueRectDifferences) - t.Run("GetPushbutton_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Pushbutton = 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.GetPushbutton(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetSignature", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemSignature - obj.Signature = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRotation *float64 - // Act & Assert - assert.Equal(t, expected, obj.GetSignature(), "getter should return the property value") - }) + // Act + obj.SetRotation(fernTestValueRotation) - t.Run("GetSignature_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Signature = 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.GetSignature(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemUnknown - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") - }) + // Act + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - t.Run("GetUnknown_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Unknown = 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.GetUnknown(), "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("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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) } -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("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("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin - obj.SetOrigin(fernTestValueOrigin) - assert.Equal(t, fernTestValueOrigin, obj.Origin) + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) 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) + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) 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) + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) 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) + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) 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) + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) 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) + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemCheckboxActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) 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) + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) 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) + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) 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) + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxRef - obj.Ref = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + obj.Activate = expected // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("GetActivate_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.Activate = nil // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetActivate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetActivate() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetCursorEnter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + obj.CursorEnter = 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 *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 + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.CursorEnter = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetCursorEnter() // Should return zero value }) - t.Run("GetOrigin", func(t *testing.T) { + t.Run("GetCursorExit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected DocFormsGet200ResponseFieldsItemCheckboxOrigin - obj.Origin = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + obj.CursorExit = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") }) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Run("GetCursorExit_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetCursorExit() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetMouseDown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + obj.MouseDown = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetMouseDown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.MouseDown = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetMouseDown() // Should return zero value }) - t.Run("GetAlternateName", func(t *testing.T) { + t.Run("GetMouseUp", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *string - obj.AlternateName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + obj.MouseUp = expected // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Run("GetMouseUp_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.AlternateName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.MouseUp = nil // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetMouseUp() // Should return zero value }) - t.Run("GetMappingName", func(t *testing.T) { + t.Run("GetFocus", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *string - obj.MappingName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + obj.Focus = expected // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Run("GetFocus_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.MappingName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.Focus = nil // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Run("GetFocus_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetFocus() // Should return zero value }) - t.Run("GetValueEntry", func(t *testing.T) { + t.Run("GetBlur", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntry - obj.ValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + obj.Blur = expected // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") }) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { + t.Run("GetBlur_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.ValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.Blur = nil // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetBlur_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetBlur() // Should return zero value }) - t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Run("GetPageOpen", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry - obj.DefaultValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + obj.PageOpen = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("GetPageOpen_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.DefaultValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.PageOpen = nil // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetPageOpen() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetPageClose", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + obj.PageClose = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetPageClose_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.PageClose = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetPageClose() // Should return zero value }) - t.Run("GetWidgets", func(t *testing.T) { + t.Run("GetPageVisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - obj.Widgets = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + obj.PageVisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetPageVisible_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - obj.Widgets = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.PageVisible = nil // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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.GetPageVisible() // Should return zero value }) - t.Run("GetChecked", func(t *testing.T) { + t.Run("GetPageInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected bool - obj.Checked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + obj.PageInvisible = 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 + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") }) - t.Run("GetExportValue", func(t *testing.T) { + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected string - obj.ExportValue = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + obj.PageInvisible = nil // Act & Assert - assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") }) - t.Run("GetExportValue_NilReceiver", func(t *testing.T) { + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions // Should not 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 + _ = obj.GetPageInvisible() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemCheckboxRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate // Act - obj.SetRef(fernTestValueRef) + obj.SetActivate(fernTestValueActivate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236101,14 +237358,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(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("SetCursorEnter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetCursorEnter(fernTestValueCursorEnter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236132,14 +237389,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(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("SetCursorExit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit // Act - obj.SetName(fernTestValueName) + obj.SetCursorExit(fernTestValueCursorExit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236163,14 +237420,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(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("SetMouseDown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetMouseDown(fernTestValueMouseDown) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236194,14 +237451,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(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("SetMouseUp_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemCheckboxFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp // Act - obj.SetFlags(fernTestValueFlags) + obj.SetMouseUp(fernTestValueMouseUp) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236225,14 +237482,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(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("SetFocus_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetFocus(fernTestValueFocus) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236256,14 +237513,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetBlur(fernTestValueBlur) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236287,14 +237544,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetPageOpen(fernTestValuePageOpen) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236318,14 +237575,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetPageClose(fernTestValuePageClose) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236349,14 +237606,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemCheckboxActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible // Act - obj.SetActions(fernTestValueActions) + obj.SetPageVisible(fernTestValuePageVisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236380,14 +237637,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(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("SetPageInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetPageInvisible(fernTestValuePageInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236411,14 +237668,167 @@ 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) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueChecked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot // Act - obj.SetChecked(fernTestValueChecked) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236442,14 +237852,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueExportValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueIncomplete bool // Act - obj.SetExportValue(fernTestValueExportValue) + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236475,185 +237947,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke - obj.Keystroke = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") - }) - - t.Run("GetKeystroke_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - obj.Keystroke = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeystroke() // Should return zero value - }) - - t.Run("GetFormat", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat - obj.Format = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - obj.Format = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormat() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetValidate", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - obj.Validate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValidate() // Should return zero value + _ = obj.GetScript() // Should return zero value }) - t.Run("GetCalculate", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - obj.Calculate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculate() // Should return zero value + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236677,14 +238129,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActions(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueSubtype string // Act - obj.SetFormat(fernTestValueFormat) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236708,14 +238160,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActions(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueScript *string // Act - obj.SetValidate(fernTestValueValidate) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236739,14 +238191,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActions(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + var fernTestValueNext []any // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236772,17 +238224,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActions(t *t } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -236790,7 +238242,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -236798,8 +238250,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -236807,12 +238259,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot obj.Root = expected // Act & Assert @@ -236822,7 +238274,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} obj.Root = nil // Act & Assert @@ -236831,7 +238283,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236844,7 +238296,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} var expected bool obj.Incomplete = expected @@ -236854,7 +238306,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236867,7 +238319,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} var expected int obj.WarningFlags = expected @@ -236877,7 +238329,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236890,8 +238342,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem obj.Warnings = expected // Act & Assert @@ -236901,7 +238353,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} obj.Warnings = nil // Act & Assert @@ -236910,7 +238362,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236922,12 +238374,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot // Act obj.SetRoot(fernTestValueRoot) @@ -236957,7 +238409,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} var fernTestValueIncomplete bool // Act @@ -236988,7 +238440,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} var fernTestValueWarningFlags int // Act @@ -237019,8 +238471,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -237049,17 +238501,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -237067,7 +238519,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -237075,7 +238527,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -237084,12 +238536,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType obj.Type = expected // Act & Assert @@ -237098,7 +238550,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237111,7 +238563,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var expected string obj.Subtype = expected @@ -237121,7 +238573,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237134,7 +238586,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var expected *string obj.Script = expected @@ -237145,7 +238597,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} obj.Script = nil // Act & Assert @@ -237154,7 +238606,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237167,7 +238619,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var expected []any obj.Next = expected @@ -237178,7 +238630,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} obj.Next = nil // Act & Assert @@ -237187,7 +238639,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237199,12 +238651,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t * } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType // Act obj.SetType(fernTestValueType) @@ -237234,7 +238686,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var fernTestValueSubtype string // Act @@ -237265,7 +238717,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var fernTestValueScript *string // Act @@ -237296,7 +238748,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} var fernTestValueNext []any // Act @@ -237326,17 +238778,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalcu } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -237344,7 +238796,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -237352,8 +238804,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -237361,12 +238813,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot obj.Root = expected // Act & Assert @@ -237376,7 +238828,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} obj.Root = nil // Act & Assert @@ -237385,7 +238837,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237398,7 +238850,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} var expected bool obj.Incomplete = expected @@ -237408,7 +238860,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237421,7 +238873,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} var expected int obj.WarningFlags = expected @@ -237431,7 +238883,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237444,8 +238896,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem obj.Warnings = expected // Act & Assert @@ -237455,7 +238907,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} obj.Warnings = nil // Act & Assert @@ -237464,7 +238916,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237476,12 +238928,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot // Act obj.SetRoot(fernTestValueRoot) @@ -237511,7 +238963,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} var fernTestValueIncomplete bool // Act @@ -237542,7 +238994,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} var fernTestValueWarningFlags int // Act @@ -237573,8 +239025,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -237603,17 +239055,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -237621,7 +239073,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -237629,7 +239081,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -237638,12 +239090,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType obj.Type = expected // Act & Assert @@ -237652,7 +239104,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237665,7 +239117,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var expected string obj.Subtype = expected @@ -237675,7 +239127,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237688,7 +239140,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var expected *string obj.Script = expected @@ -237699,7 +239151,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} obj.Script = nil // Act & Assert @@ -237708,7 +239160,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237721,7 +239173,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var expected []any obj.Next = expected @@ -237732,7 +239184,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} obj.Next = nil // Act & Assert @@ -237741,7 +239193,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237753,12 +239205,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *tes } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType // Act obj.SetType(fernTestValueType) @@ -237788,7 +239240,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var fernTestValueSubtype string // Act @@ -237819,7 +239271,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var fernTestValueScript *string // Act @@ -237850,7 +239302,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} var fernTestValueNext []any // Act @@ -237880,17 +239332,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsForma } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -237898,7 +239350,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -237906,8 +239358,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -237915,12 +239367,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot obj.Root = expected // Act & Assert @@ -237930,7 +239382,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} obj.Root = nil // Act & Assert @@ -237939,7 +239391,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237952,7 +239404,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} var expected bool obj.Incomplete = expected @@ -237962,7 +239414,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237975,7 +239427,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} var expected int obj.WarningFlags = expected @@ -237985,7 +239437,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237998,8 +239450,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem obj.Warnings = expected // Act & Assert @@ -238009,7 +239461,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} obj.Warnings = nil // Act & Assert @@ -238018,7 +239470,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238030,12 +239482,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot // Act obj.SetRoot(fernTestValueRoot) @@ -238065,7 +239517,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} var fernTestValueIncomplete bool // Act @@ -238096,7 +239548,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} var fernTestValueWarningFlags int // Act @@ -238127,8 +239579,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -238157,17 +239609,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -238175,7 +239627,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -238183,7 +239635,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -238192,12 +239644,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType obj.Type = expected // Act & Assert @@ -238206,7 +239658,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238219,7 +239671,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var expected string obj.Subtype = expected @@ -238229,7 +239681,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238242,7 +239694,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var expected *string obj.Script = expected @@ -238253,7 +239705,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} obj.Script = nil // Act & Assert @@ -238262,7 +239714,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238275,7 +239727,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var expected []any obj.Next = expected @@ -238286,7 +239738,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} obj.Next = nil // Act & Assert @@ -238295,7 +239747,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238307,12 +239759,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t * } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType // Act obj.SetType(fernTestValueType) @@ -238342,7 +239794,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var fernTestValueSubtype string // Act @@ -238373,7 +239825,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var fernTestValueScript *string // Act @@ -238404,7 +239856,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} var fernTestValueNext []any // Act @@ -238434,17 +239886,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeyst } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -238452,7 +239904,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -238460,8 +239912,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -238469,12 +239921,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot obj.Root = expected // Act & Assert @@ -238484,7 +239936,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} obj.Root = nil // Act & Assert @@ -238493,7 +239945,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238506,7 +239958,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} var expected bool obj.Incomplete = expected @@ -238516,7 +239968,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238529,7 +239981,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} var expected int obj.WarningFlags = expected @@ -238539,7 +239991,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238552,8 +240004,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem obj.Warnings = expected // Act & Assert @@ -238563,7 +240015,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} obj.Warnings = nil // Act & Assert @@ -238572,7 +240024,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238584,12 +240036,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot // Act obj.SetRoot(fernTestValueRoot) @@ -238619,7 +240071,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} var fernTestValueIncomplete bool // Act @@ -238650,7 +240102,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} var fernTestValueWarningFlags int // Act @@ -238681,8 +240133,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -238711,17 +240163,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -238729,7 +240181,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -238737,7 +240189,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -238746,12 +240198,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType obj.Type = expected // Act & Assert @@ -238760,7 +240212,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238773,7 +240225,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var expected string obj.Subtype = expected @@ -238783,7 +240235,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238796,7 +240248,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var expected *string obj.Script = expected @@ -238807,7 +240259,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} obj.Script = nil // Act & Assert @@ -238816,7 +240268,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238829,7 +240281,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var expected []any obj.Next = expected @@ -238840,7 +240292,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} obj.Next = nil // Act & Assert @@ -238849,7 +240301,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238861,12 +240313,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType // Act obj.SetType(fernTestValueType) @@ -238896,7 +240348,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var fernTestValueSubtype string // Act @@ -238927,7 +240379,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var fernTestValueScript *string // Act @@ -238958,7 +240410,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} var fernTestValueNext []any // Act @@ -238988,220 +240440,196 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValid } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected string - obj.Kind = expected +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_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.GetKind() // Should return zero value + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown // Should not 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 := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar - obj.Scalar = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown // Should not 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 := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown // Should not 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 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) + _ = obj.GetWarnings() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetRoot(fernTestValueRoot) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} - 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 *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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueIncomplete bool // Act - obj.SetValues(fernTestValueValues) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239225,54 +240653,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValue // 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) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem // Act - obj.SetValue(fernTestValueValue) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239298,145 +240717,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValue } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239460,14 +240899,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueSubtype string // Act - obj.SetRequired(fernTestValueRequired) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239491,14 +240930,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueScript *string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239522,14 +240961,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + var fernTestValueNext []any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239555,144 +240994,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - var expected string - obj.Kind = expected +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_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.GetKind() // Should return zero value + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp // Should not 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.GetWarningFlags() // Should return zero value }) -} + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem + obj.Warnings = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + obj.Warnings = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRefFqn + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239716,54 +241176,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueIncomplete bool -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) - }) + // Act + obj.SetIncomplete(fernTestValueIncomplete) -} + // Assert - 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 TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} - 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.Run("SetWarningFlags_MarksExplicit", 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 - }) + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueWarningFlags int -} + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -239789,220 +241271,196 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefObjectNum } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) }) - 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 + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone - obj.None = expected + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot // Should not 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 - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot // Should not 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 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) + _ = obj.GetNext() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetType(fernTestValueType) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} - 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 *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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueSubtype string // Act - obj.SetValues(fernTestValueValues) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -240026,54 +241484,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryAr // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + var fernTestValueNext []any // Act - obj.SetValue(fernTestValueValue) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -240099,207 +241548,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntrySc } -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 := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) 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) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) 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) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + obj.Root = 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 + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + obj.Root = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose // Should not panic - getters should handle nil 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.GetRoot() // Should return zero value }) - t.Run("GetOnState", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected string - obj.OnState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetOnState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetOnState_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose // Should not 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 + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetExportValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected string - obj.ExportValue = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetExportValue_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose // Should not 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 + _ = obj.GetWarningFlags() // Should return zero value }) - t.Run("GetChecked", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected bool - obj.Checked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetChecked_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - 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) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -240323,14 +241730,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOnState_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueOnState string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueIncomplete bool // Act - obj.SetOnState(fernTestValueOnState) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -240354,14 +241761,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueExportValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueWarningFlags int // Act - obj.SetExportValue(fernTestValueExportValue) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -240385,14 +241792,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChecked_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueChecked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem // Act - obj.SetChecked(fernTestValueChecked) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -240418,576 +241825,442 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem( } -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("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("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("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 *DocFormsGet200ResponseFieldsItemComboboxActions - 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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxRef - 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var expected *string + obj.Script = 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 *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.GetName() // Should return zero value + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetOrigin", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected DocFormsGet200ResponseFieldsItemComboboxOrigin - obj.Origin = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + obj.Script = nil // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot // Should not 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.GetNext() // Should return zero value }) - t.Run("GetAlternateName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *string - obj.AlternateName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") - }) +} - t.Run("GetAlternateName_NilValue", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.AlternateName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType - // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") - }) + // Act + obj.SetType(fernTestValueType) - 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 - }) + // Assert - 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", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *string - obj.MappingName = 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.GetMappingName(), "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("GetMappingName_NilValue", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.MappingName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueSubtype string - // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") - }) + // Act + obj.SetSubtype(fernTestValueSubtype) - 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 - }) + // Assert - 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("GetValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntry - obj.ValueEntry = 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.GetValueEntry(), "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("GetValueEntry_NilValue", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.ValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetValueEntry_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.GetValueEntry() // 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("GetDefaultValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry - obj.DefaultValueEntry = 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.GetDefaultValueEntry(), "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("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.DefaultValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + var fernTestValueNext []any - // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") - }) + // Act + obj.SetNext(fernTestValueNext) - t.Run("GetDefaultValueEntry_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.GetDefaultValueEntry() // 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("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActions - obj.Actions = 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.GetActions(), "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("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.Actions = nil +} - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetActions_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.GetActions() // Should return zero value + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetWidgets", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem - obj.Widgets = expected + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.Widgets = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + obj.Root = 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 *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.GetWidgets() // Should return zero value + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + obj.Root = nil // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible // Should not 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 + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetDefaultValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected string - obj.DefaultValue = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetDefaultValue_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetEdit", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected bool - obj.Edit = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetEdit(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetEdit_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible // Should not 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 + _ = obj.GetWarningFlags() // Should return zero value }) - t.Run("GetOptions", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem - obj.Options = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetOptions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetOptions_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.Options = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetOptions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetOptions_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemComboboxRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot // Act - obj.SetRef(fernTestValueRef) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241011,14 +242284,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueIncomplete bool // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241042,14 +242315,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueWarningFlags int // Act - obj.SetName(fernTestValueName) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241073,14 +242346,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemComboboxOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241104,107 +242377,167 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemComboboxFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType + obj.Type = expected - // Act - obj.SetFlags(fernTestValueFlags) + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "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("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // 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("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var expected string + obj.Subtype = 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.GetSubtype(), "getter should return the property value") }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var expected *string + obj.Script = expected - // Act - obj.SetAlternateName(fernTestValueAlternateName) + // Act & Assert + assert.Equal(t, expected, obj.GetScript(), "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("GetScript_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + obj.Script = 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.GetScript(), "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("GetScript_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + // Should not 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("SetMappingName_MarksExplicit", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected - // Act - obj.SetMappingName(fernTestValueMappingName) + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "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("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + obj.Next = 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.GetNext(), "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("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241228,14 +242561,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241259,14 +242592,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemComboboxActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueScript *string // Act - obj.SetActions(fernTestValueActions) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241290,14 +242623,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + var fernTestValueNext []any // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241321,14 +242654,167 @@ 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) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot // Act - obj.SetValue(fernTestValueValue) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241352,14 +242838,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValue_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueDefaultValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueIncomplete bool // Act - obj.SetDefaultValue(fernTestValueDefaultValue) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241383,14 +242869,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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueEdit bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueWarningFlags int // Act - obj.SetEdit(fernTestValueEdit) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241414,14 +242900,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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem // Act - obj.SetOptions(fernTestValueOptions) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241447,185 +242933,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemComboboxActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemComboboxActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke - obj.Keystroke = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKeystroke_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - obj.Keystroke = nil - - // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") - }) - - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeystroke() // Should return zero value - }) - - t.Run("GetFormat", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsFormat - obj.Format = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - obj.Format = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormat() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetValidate", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - obj.Validate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValidate() // Should return zero value + _ = obj.GetScript() // Should return zero value }) - t.Run("GetCalculate", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - obj.Calculate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculate() // Should return zero value + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241649,14 +243115,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActions(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueSubtype string // Act - obj.SetFormat(fernTestValueFormat) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241680,14 +243146,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActions(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueScript *string // Act - obj.SetValidate(fernTestValueValidate) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241711,14 +243177,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActions(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + var fernTestValueNext []any // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -241744,17 +243210,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActions(t *t } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -241762,7 +243228,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -241770,8 +243236,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -241779,12 +243245,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot obj.Root = expected // Act & Assert @@ -241794,7 +243260,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} obj.Root = nil // Act & Assert @@ -241803,7 +243269,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241816,7 +243282,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} var expected bool obj.Incomplete = expected @@ -241826,7 +243292,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241839,7 +243305,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} var expected int obj.WarningFlags = expected @@ -241849,7 +243315,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241862,8 +243328,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem obj.Warnings = expected // Act & Assert @@ -241873,7 +243339,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} obj.Warnings = nil // Act & Assert @@ -241882,7 +243348,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241894,12 +243360,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot // Act obj.SetRoot(fernTestValueRoot) @@ -241929,7 +243395,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} var fernTestValueIncomplete bool // Act @@ -241960,7 +243426,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} var fernTestValueWarningFlags int // Act @@ -241991,8 +243457,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -242021,17 +243487,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -242039,7 +243505,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -242047,7 +243513,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -242056,12 +243522,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType obj.Type = expected // Act & Assert @@ -242070,7 +243536,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242083,7 +243549,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var expected string obj.Subtype = expected @@ -242093,7 +243559,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242106,7 +243572,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var expected *string obj.Script = expected @@ -242117,7 +243583,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} obj.Script = nil // Act & Assert @@ -242126,7 +243592,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242139,7 +243605,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var expected []any obj.Next = expected @@ -242150,7 +243616,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} obj.Next = nil // Act & Assert @@ -242159,7 +243625,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242171,12 +243637,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t * } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType // Act obj.SetType(fernTestValueType) @@ -242206,7 +243672,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var fernTestValueSubtype string // Act @@ -242237,7 +243703,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var fernTestValueScript *string // Act @@ -242268,7 +243734,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} var fernTestValueNext []any // Act @@ -242298,165 +243764,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalcu } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) +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) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - obj.Root = nil - - // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") - }) - - t.Run("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIncomplete() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var expected int - obj.WarningFlags = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarnings() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var fernTestValueR int // Act - obj.SetRoot(fernTestValueRoot) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242480,14 +243895,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var fernTestValueG int // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242511,14 +243926,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + var fernTestValueB int // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242542,198 +243957,333 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem +} - // Act - obj.SetWarnings(fernTestValueWarnings) +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) + 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("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + 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("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + 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("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + 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.GetType() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + 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.GetSubtype() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetScript", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var expected *string - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetPrint_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.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + 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.GetScript() // Should return zero value + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetNext", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetNoRotate_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.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + 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.GetNext() // Should return zero value + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 *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.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 *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.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 *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.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueInvisible bool // Act - obj.SetType(fernTestValueType) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242757,14 +244307,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueHidden bool // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242788,14 +244338,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValuePrint bool // Act - obj.SetScript(fernTestValueScript) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242819,14 +244369,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueNoZoom bool // Act - obj.SetNext(fernTestValueNext) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -242850,198 +244400,437 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsForma // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueNoRotate bool -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) + // 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("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) - assert.NotNil(t, obj.explicitFields) + t.Run("SetNoView_MarksExplicit", 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 }) - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) - assert.NotNil(t, obj.explicitFields) + t.Run("SetReadOnly_MarksExplicit", 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) - assert.NotNil(t, obj.explicitFields) + t.Run("SetLocked_MarksExplicit", 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueToggleNoView bool -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { + // 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot - obj.Root = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + var fernTestValueLockedContents bool - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "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("GetRoot_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - obj.Root = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoot() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetIncomplete", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIncomplete() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var expected int - obj.WarningFlags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarningFlags() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetWarnings", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem - obj.Warnings = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarnings() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +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) + }) + + 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("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetRoot(fernTestValueRoot) + // 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + // Should not panic - getters should handle nil 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("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var expected int + 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("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + // Should not 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243065,14 +244854,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243096,14 +244885,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243129,165 +244918,278 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) +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) }) - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + 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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + 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) }) } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetType() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Should not 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("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var expected *string - obj.Script = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Should not 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.GetGeneration() // Should return zero value }) - t.Run("GetNext", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + 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 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.GetNext(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetNext_NilValue", func(t *testing.T) { + 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + 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.GetNext() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetType(fernTestValueType) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243311,14 +245213,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} + var fernTestValueNm string // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243342,14 +245244,85 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { +} + +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 := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueScript *string + 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.SetScript(fernTestValueScript) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243373,14 +245346,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetNext(fernTestValueNext) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243406,165 +245379,145 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeyst } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) +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("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + 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("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + 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("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + 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 TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - obj.Root = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + 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.GetRoot() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetIncomplete", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + 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.GetIncomplete() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var expected int - obj.WarningFlags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + 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.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + 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.GetWarnings() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var fernTestValueLeft float64 // Act - obj.SetRoot(fernTestValueRoot) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243588,14 +245541,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var fernTestValueBottom float64 // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243619,14 +245572,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var fernTestValueRight float64 // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243650,14 +245603,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + var fernTestValueTop float64 // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243683,165 +245636,145 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) +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("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) + 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("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + 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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + 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 TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + 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.GetType() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + 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.GetSubtype() // Should return zero value - }) - - t.Run("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var expected *string - obj.Script = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + _ = obj.GetTop() // Should return zero value }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + 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.GetScript() // Should return zero value - }) - - t.Run("GetNext", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var expected []any - obj.Next = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + 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.GetNext() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueLeft float64 // Act - obj.SetType(fernTestValueType) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243865,14 +245798,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueTop float64 // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243896,14 +245829,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueRight float64 // Act - obj.SetScript(fernTestValueScript) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243927,14 +245860,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueBottom float64 // Act - obj.SetNext(fernTestValueNext) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -243960,11 +245893,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValid } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} var expected string obj.Kind = expected @@ -243974,7 +245907,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243984,196 +245917,225 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes _ = obj.GetKind() // Should return zero value }) - t.Run("GetNone", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + 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.GetNone() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + 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.GetScalar() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + 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.GetArray() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported - obj.Unsupported = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property 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("GetUnsupported_NilValue", func(t *testing.T) { + 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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + 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.GetUnsupported() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) -} + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var expected int + obj.Index = expected -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) + // 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 + }) -func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + 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.GetValues() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetValues(fernTestValueValues) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244197,54 +246159,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValue // 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 TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var fernTestValueIndex int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetIndex(fernTestValueIndex) - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(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("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision // Act - obj.SetValue(fernTestValueValue) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244270,145 +246223,145 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValue } -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("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) +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) }) - t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) + 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) }) - t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + 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) }) } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + 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.GetReadOnly() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + 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.GetRequired() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + 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.GetNoExport() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + var fernTestValueDocSessionID string - // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") - }) + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetRaw() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { - t.Run("SetReadOnly_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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244432,14 +246385,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetRequired(fernTestValueRequired) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244463,14 +246416,85 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { +} + +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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + 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) @@ -244494,14 +246518,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + var fernTestValueNm string // Act - obj.SetRaw(fernTestValueRaw) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244527,114 +246551,83 @@ 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) +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) 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) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) 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) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber // Should not 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 + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetSelected", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var expected bool - obj.Selected = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetSelected(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetSelected_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber // Should not 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 + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { - t.Run("SetLabel_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueLabel string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetLabel(fernTestValueLabel) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244658,14 +246651,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxOptionsItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetValue(fernTestValueValue) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244689,177 +246682,147 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxOptionsItem( // 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) +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) + }) - // Assert - 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("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + 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("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + 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("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 TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRef + 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.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - var expected *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRef + 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.GetObjectNumber() // Should return zero value - }) - - t.Run("GetFqn", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - var expected *DocFormsGet200ResponseFieldsItemComboboxRefFqn - obj.Fqn = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRef + 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.GetFqn() // Should return zero 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) + _ = obj.GetRight() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRefFqn + 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.GetName() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueLeft float64 // Act - obj.SetName(fernTestValueName) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244883,54 +246846,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueBottom float64 - // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetBottom(fernTestValueBottom) - 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 + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + // 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 := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueTop float64 // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -244956,995 +246941,1178 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefObjectNum } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +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("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) + }) + + 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) + }) + + 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) + }) + + 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) + }) + + 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("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + 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("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 := &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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 *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.GetKind() // Should return zero value - }) - - 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") + _ = obj.GetRef() // Should return zero value }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + 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.GetNone() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + 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 + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + 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.GetScalar() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + 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.GetArray() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Flags = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + 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.GetUnsupported() // Should return zero value - }) - -} - -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) + _ = obj.GetFlags() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Rect = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + 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.GetValues() // Should return zero value + _ = obj.GetRect() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} - 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 - }) - -} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.Contents = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Contents = nil // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + 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.GetValue() // Should return zero value + _ = obj.GetContents() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} - 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 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) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.Subject = expected - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Subject = nil // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + 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.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 *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.GetPageObjectNumber() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Created = 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.GetCreated(), "getter should return nil when property is nil") }) -} - -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("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 }) - 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("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *time.Time + obj.Modified = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - 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("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Modified = nil - 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) + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) - 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("GetModified_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.GetModified() // Should return zero value }) - 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("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode + obj.BlendMode = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - 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("GetBlendMode_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.GetBlendMode() // Should return zero value }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemListboxActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + obj.InReplyTo = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) - 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("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.InReplyTo = nil - 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) + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - 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) + t.Run("GetInReplyTo_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.GetInReplyTo() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxRef - obj.Ref = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType + obj.ReplyType = expected // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.ReplyType = nil // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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 + _ = obj.GetReplyType() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 *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.GetFieldObjectNumber() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.GroupID = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 *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.GetName() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetOrigin", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected DocFormsGet200ResponseFieldsItemListboxOrigin - obj.Origin = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 *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.GetOrigin() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.UpdatedBy = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetFlags() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) - t.Run("GetAlternateName", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *string - obj.AlternateName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.AlternateName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Actions = nil // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetAlternateName() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetMappingName", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *string - obj.MappingName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.MappingName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetMappingName() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetValueEntry", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntry - obj.ValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { + 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("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.ValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetValueEntry() // Should return zero value + _ = obj.GetStrokeWidth() // Should return zero value }) - t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry - obj.DefaultValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle + obj.BorderStyle = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("GetBorderStyle_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.GetBorderStyle() // Should return zero value + }) + + t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.DefaultValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected []float64 + obj.DashArray = expected // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + // 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.GetDefaultValueEntry() // Should return zero value + _ = obj.GetDashArray() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + obj.InteriorColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.InteriorColor = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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 + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("GetWidgets", func(t *testing.T) { + t.Run("GetCloudyIntensity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem - obj.Widgets = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *float64 + obj.CloudyIntensity = expected // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.Widgets = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.CloudyIntensity = nil // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetWidgets() // Should return zero value + _ = obj.GetCloudyIntensity() // Should return zero value }) - t.Run("GetSelectedValues", func(t *testing.T) { + t.Run("GetRectDifferences", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected []string - obj.SelectedValues = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + obj.RectDifferences = expected // Act & Assert - assert.Equal(t, expected, obj.GetSelectedValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") }) - t.Run("GetSelectedValues_NilValue", func(t *testing.T) { + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.SelectedValues = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.RectDifferences = nil // Act & Assert - assert.Nil(t, obj.GetSelectedValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") }) - t.Run("GetSelectedValues_NilReceiver", func(t *testing.T) { + t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetSelectedValues() // Should return zero value + _ = obj.GetRectDifferences() // Should return zero value }) - t.Run("GetMultiSelect", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected bool - obj.MultiSelect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetMultiSelect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetMultiSelect_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + // 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.GetMultiSelect() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetOptions", func(t *testing.T) { + t.Run("GetUnrotatedRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected []*DocFormsGet200ResponseFieldsItemListboxOptionsItem - obj.Options = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + obj.UnrotatedRect = expected // Act & Assert - assert.Equal(t, expected, obj.GetOptions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") }) - t.Run("GetOptions_NilValue", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.Options = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.UnrotatedRect = nil // Act & Assert - assert.Nil(t, obj.GetOptions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") }) - t.Run("GetOptions_NilReceiver", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + 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.GetOptions() // Should return zero value + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemListboxRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef // Act obj.SetRef(fernTestValueRef) @@ -245971,14 +248139,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValuePageObjectNumber int // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246002,14 +248170,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueIndex int // Act - obj.SetName(fernTestValueName) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246033,14 +248201,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemListboxOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246064,14 +248232,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemListboxFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueNm *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246095,14 +248263,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246126,14 +248294,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246157,14 +248325,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueContents *string // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246188,14 +248356,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueSubject *string // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246219,14 +248387,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemListboxActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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) @@ -246250,14 +248418,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(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("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCreated *time.Time // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246281,14 +248449,14 @@ 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.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueSelectedValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueModified *time.Time // Act - obj.SetSelectedValues(fernTestValueSelectedValues) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246312,14 +248480,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMultiSelect_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueMultiSelect bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode // Act - obj.SetMultiSelect(fernTestValueMultiSelect) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246343,14 +248511,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOptions_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemListboxOptionsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Act - obj.SetOptions(fernTestValueOptions) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246374,187 +248542,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemListboxActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemListboxActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke - obj.Keystroke = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") - }) - - t.Run("GetKeystroke_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - obj.Keystroke = nil - - // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") - }) - - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKeystroke() // Should return zero value - }) - - t.Run("GetFormat", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsFormat - obj.Format = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") - }) - - t.Run("GetFormat_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - obj.Format = nil - - // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") - }) - - t.Run("GetFormat_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFormat() // Should return zero value - }) - - t.Run("GetValidate", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsValidate - obj.Validate = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") - }) - - t.Run("GetValidate_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - obj.Validate = nil - - // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") - }) - - t.Run("GetValidate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValidate() // Should return zero value - }) - - t.Run("GetCalculate", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - obj.Calculate = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") - }) - - t.Run("GetCalculate_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - obj.Calculate = nil - - // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") - }) - - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCalculate() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246578,14 +248573,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemListboxActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUserID *string // Act - obj.SetFormat(fernTestValueFormat) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246609,14 +248604,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemListboxActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueGroupID *string // Act - obj.SetValidate(fernTestValueValidate) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246640,14 +248635,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCreatedBy *string // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246671,167 +248666,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - obj.Root = nil - - // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") - }) - - t.Run("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var expected bool - obj.Incomplete = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") - }) - - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIncomplete() // Should return zero value - }) - - t.Run("GetWarningFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var expected int - obj.WarningFlags = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") - }) - - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") - }) - - t.Run("GetWarnings_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - obj.Warnings = nil - - // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") - }) - - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWarnings() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUpdatedBy *string // Act - obj.SetRoot(fernTestValueRoot) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246855,14 +248697,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246886,14 +248728,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246917,14 +248759,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueOpacity float64 // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -246948,167 +248790,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType - obj.Type = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") - }) - - t.Run("GetType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetType() // Should return zero value - }) - - t.Run("GetSubtype", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - 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 *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - // Should not 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("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var expected *string - 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 := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - 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 *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - // Should not 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("GetNext", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var expected []any - obj.Next = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") - }) - - t.Run("GetNext_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - obj.Next = nil - - // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") - }) - - t.Run("GetNext_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNext() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueStrokeWidth float64 // Act - obj.SetType(fernTestValueType) + obj.SetStrokeWidth(fernTestValueStrokeWidth) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247132,14 +248821,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247163,14 +248852,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueDashArray []float64 // Act - obj.SetScript(fernTestValueScript) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247194,14 +248883,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor // Act - obj.SetNext(fernTestValueNext) + obj.SetInteriorColor(fernTestValueInteriorColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247225,167 +248914,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - obj.Root = nil - - // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") - }) - - t.Run("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var expected bool - obj.Incomplete = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") - }) - - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIncomplete() // Should return zero value - }) - - t.Run("GetWarningFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var expected int - obj.WarningFlags = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") - }) - - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") - }) - - t.Run("GetWarnings_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - obj.Warnings = nil - - // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") - }) - - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWarnings() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCloudyIntensity *float64 // Act - obj.SetRoot(fernTestValueRoot) + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247409,14 +248945,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetRectDifferences(fernTestValueRectDifferences) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247440,14 +248976,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRotation *float64 // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247471,14 +249007,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247504,165 +249040,472 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat } -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + obj.Activate = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetActivate_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetType() // Should return zero value + _ = obj.GetActivate() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetCursorEnter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + obj.CursorEnter = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions // Should not 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 + _ = obj.GetCursorEnter() // Should return zero value }) - t.Run("GetScript", func(t *testing.T) { + t.Run("GetCursorExit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var expected *string - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + obj.CursorExit = expected // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetCursorExit_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.CursorExit = nil // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions // Should not 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.GetCursorExit() // Should return zero value }) - t.Run("GetNext", func(t *testing.T) { + t.Run("GetMouseDown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + obj.MouseDown = expected // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetMouseDown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.MouseDown = nil // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNext() // Should return zero value + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate // Act - obj.SetType(fernTestValueType) + obj.SetActivate(fernTestValueActivate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247686,14 +249529,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetCursorEnter(fernTestValueCursorEnter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247717,14 +249560,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit // Act - obj.SetScript(fernTestValueScript) + obj.SetCursorExit(fernTestValueCursorExit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247748,14 +249591,231 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown // Act - obj.SetNext(fernTestValueNext) + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -247781,17 +249841,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat } -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -247799,7 +249859,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -247807,8 +249867,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -247816,12 +249876,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot obj.Root = expected // Act & Assert @@ -247831,7 +249891,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} obj.Root = nil // Act & Assert @@ -247840,7 +249900,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247853,7 +249913,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} var expected bool obj.Incomplete = expected @@ -247863,7 +249923,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247876,7 +249936,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} var expected int obj.WarningFlags = expected @@ -247886,7 +249946,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247899,8 +249959,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem obj.Warnings = expected // Act & Assert @@ -247910,7 +249970,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} obj.Warnings = nil // Act & Assert @@ -247919,7 +249979,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247931,12 +249991,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot // Act obj.SetRoot(fernTestValueRoot) @@ -247966,7 +250026,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} var fernTestValueIncomplete bool // Act @@ -247997,7 +250057,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} var fernTestValueWarningFlags int // Act @@ -248028,8 +250088,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -248058,17 +250118,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr } -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -248076,7 +250136,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -248084,7 +250144,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -248093,12 +250153,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t } -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType obj.Type = expected // Act & Assert @@ -248107,7 +250167,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248120,7 +250180,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var expected string obj.Subtype = expected @@ -248130,7 +250190,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248143,7 +250203,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var expected *string obj.Script = expected @@ -248154,7 +250214,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} obj.Script = nil // Act & Assert @@ -248163,7 +250223,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248176,7 +250236,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var expected []any obj.Next = expected @@ -248187,7 +250247,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} obj.Next = nil // Act & Assert @@ -248196,7 +250256,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248208,12 +250268,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType // Act obj.SetType(fernTestValueType) @@ -248243,7 +250303,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var fernTestValueSubtype string // Act @@ -248274,7 +250334,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var fernTestValueScript *string // Act @@ -248305,7 +250365,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} var fernTestValueNext []any // Act @@ -248335,17 +250395,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystr } -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -248353,7 +250413,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -248361,8 +250421,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -248370,12 +250430,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot obj.Root = expected // Act & Assert @@ -248385,7 +250445,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} obj.Root = nil // Act & Assert @@ -248394,7 +250454,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248407,7 +250467,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} var expected bool obj.Incomplete = expected @@ -248417,7 +250477,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248430,7 +250490,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} var expected int obj.WarningFlags = expected @@ -248440,7 +250500,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248453,8 +250513,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem obj.Warnings = expected // Act & Assert @@ -248464,7 +250524,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} obj.Warnings = nil // Act & Assert @@ -248473,7 +250533,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248485,12 +250545,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testin } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot // Act obj.SetRoot(fernTestValueRoot) @@ -248520,7 +250580,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} var fernTestValueIncomplete bool // Act @@ -248551,7 +250611,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} var fernTestValueWarningFlags int // Act @@ -248582,8 +250642,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -248612,17 +250672,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida } -func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -248630,7 +250690,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -248638,7 +250698,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -248647,12 +250707,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType obj.Type = expected // Act & Assert @@ -248661,7 +250721,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248674,7 +250734,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var expected string obj.Subtype = expected @@ -248684,7 +250744,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248697,7 +250757,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var expected *string obj.Script = expected @@ -248708,7 +250768,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} obj.Script = nil // Act & Assert @@ -248717,7 +250777,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248730,7 +250790,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var expected []any obj.Next = expected @@ -248741,7 +250801,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} obj.Next = nil // Act & Assert @@ -248750,7 +250810,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -248762,12 +250822,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *te } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType // Act obj.SetType(fernTestValueType) @@ -248797,7 +250857,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var fernTestValueSubtype string // Act @@ -248828,7 +250888,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var fernTestValueScript *string // Act @@ -248859,7 +250919,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} var fernTestValueNext []any // Act @@ -248889,220 +250949,196 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValida } -func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected string - obj.Kind = expected +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + 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("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter // Should not 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 := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar - obj.Scalar = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter // Should not 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 := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter // Should not 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 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) + _ = obj.GetWarnings() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetRoot(fernTestValueRoot) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} - 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 *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.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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueIncomplete bool // Act - obj.SetValues(fernTestValueValues) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249126,54 +251162,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueE // 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) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem // Act - obj.SetValue(fernTestValueValue) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249199,145 +251226,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueE } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249361,14 +251408,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueSubtype string // Act - obj.SetRequired(fernTestValueRequired) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249392,14 +251439,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueScript *string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249423,14 +251470,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + var fernTestValueNext []any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249456,114 +251503,165 @@ 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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) 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) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("GetLabel", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var expected string - obj.Label = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetLabel(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetLabel_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit // Should not 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 + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit // Should not 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 + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetSelected", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var expected bool - obj.Selected = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetSelected(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetSelected_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit // Should not 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 + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("SetLabel_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueLabel string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot // Act - obj.SetLabel(fernTestValueLabel) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249587,14 +251685,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxOptionsItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueIncomplete bool // Act - obj.SetValue(fernTestValueValue) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249618,14 +251716,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxOptionsItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSelected_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueSelected bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueWarningFlags int // Act - obj.SetSelected(fernTestValueSelected) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249651,144 +251780,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxOptionsItem(t } -func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot // Should not 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 := &DocFormsGet200ResponseFieldsItemListboxRef{} - var expected *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} - var expected *DocFormsGet200ResponseFieldsItemListboxRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot // Should not 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.GetScript() // Should return zero value }) -} + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var expected []any + obj.Next = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + obj.Next = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRefFqn + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249812,54 +251962,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefFqn(t *tes // 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) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueSubtype string - // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetSubtype(fernTestValueSubtype) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueScript *string // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249883,222 +252024,198 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefObjectNumb // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + var fernTestValueNext []any - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetNext(fernTestValueNext) - t.Run("GetKind_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.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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryNone - obj.None = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - obj.None = nil + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_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.GetNone() // Should return zero value + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus // Should not 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 := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus // Should not 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") + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus // Should not 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 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) + _ = obj.GetWarningFlags() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot // Act - obj.SetValues(fernTestValueValues) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250122,54 +252239,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryArr // 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.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 *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.GetValue() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueIncomplete bool // Act - obj.SetValue(fernTestValueValue) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250193,85 +252270,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntrySca // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} - 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 *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.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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueWarningFlags int // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250295,14 +252301,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250328,442 +252334,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t } -func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 := &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 := &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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - obj.SetValueEntry(fernTestValueValueEntry) - assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) - assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemPushbuttonActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem - obj.SetWidgets(fernTestValueWidgets) - assert.Equal(t, fernTestValueWidgets, obj.Widgets) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonRef - 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} 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 *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected DocFormsGet200ResponseFieldsItemPushbuttonOrigin - obj.Origin = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") - }) - - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonFlags - 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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("GetAlternateName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *string - obj.AlternateName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") - }) - - t.Run("GetAlternateName_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - obj.AlternateName = nil + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMappingName", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} var expected *string - obj.MappingName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") - }) - - t.Run("GetMappingName_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - 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) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry - obj.DefaultValueEntry = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") - }) - - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - 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 *DocFormsGet200ResponseFieldsItemPushbutton - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActions - obj.Actions = expected + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetWidgets", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem - obj.Widgets = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - obj.Widgets = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemPushbuttonRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType // Act - obj.SetRef(fernTestValueRef) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250787,14 +252516,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueSubtype string // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250818,14 +252547,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueScript *string // Act - obj.SetName(fernTestValueName) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250849,14 +252578,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemPushbuttonOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + var fernTestValueNext []any // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250880,107 +252609,167 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemPushbuttonFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + obj.Root = expected - // Act - obj.SetFlags(fernTestValueFlags) + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "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("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + obj.Root = 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.GetRoot(), "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("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var expected bool + obj.Incomplete = expected - // Act - obj.SetAlternateName(fernTestValueAlternateName) + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "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("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // 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("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var expected int + obj.WarningFlags = 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.GetWarningFlags(), "getter should return the property value") }) - t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem + obj.Warnings = expected - // Act - obj.SetMappingName(fernTestValueMappingName) + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "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("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + obj.Warnings = 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.GetWarnings(), "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("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251004,14 +252793,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueIncomplete bool // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251035,14 +252824,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemPushbuttonActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueWarningFlags int // Act - obj.SetActions(fernTestValueActions) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251066,14 +252855,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251099,185 +252888,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke - obj.Keystroke = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") - }) - - t.Run("GetKeystroke_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - obj.Keystroke = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeystroke() // Should return zero value - }) - - t.Run("GetFormat", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat - obj.Format = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - obj.Format = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormat() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetValidate", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - obj.Validate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValidate() // Should return zero value + _ = obj.GetScript() // Should return zero value }) - t.Run("GetCalculate", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - obj.Calculate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculate() // Should return zero value + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251301,14 +253070,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActions(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueSubtype string // Act - obj.SetFormat(fernTestValueFormat) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251332,14 +253101,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActions(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueScript *string // Act - obj.SetValidate(fernTestValueValidate) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251363,14 +253132,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActions(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + var fernTestValueNext []any // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251396,17 +253165,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActions(t } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -251414,7 +253183,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -251422,8 +253191,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -251431,12 +253200,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot obj.Root = expected // Act & Assert @@ -251446,7 +253215,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} obj.Root = nil // Act & Assert @@ -251455,7 +253224,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251468,7 +253237,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} var expected bool obj.Incomplete = expected @@ -251478,7 +253247,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251491,7 +253260,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} var expected int obj.WarningFlags = expected @@ -251501,7 +253270,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251514,8 +253283,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem obj.Warnings = expected // Act & Assert @@ -251525,7 +253294,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} obj.Warnings = nil // Act & Assert @@ -251534,7 +253303,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251546,12 +253315,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *te } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot // Act obj.SetRoot(fernTestValueRoot) @@ -251581,7 +253350,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} var fernTestValueIncomplete bool // Act @@ -251612,7 +253381,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} var fernTestValueWarningFlags int // Act @@ -251643,8 +253412,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -251673,17 +253442,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -251691,7 +253460,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -251699,7 +253468,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -251708,12 +253477,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType obj.Type = expected // Act & Assert @@ -251722,7 +253491,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251735,7 +253504,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var expected string obj.Subtype = expected @@ -251745,7 +253514,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251758,7 +253527,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var expected *string obj.Script = expected @@ -251769,7 +253538,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} obj.Script = nil // Act & Assert @@ -251778,7 +253547,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251791,7 +253560,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var expected []any obj.Next = expected @@ -251802,7 +253571,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} obj.Next = nil // Act & Assert @@ -251811,7 +253580,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251823,12 +253592,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType // Act obj.SetType(fernTestValueType) @@ -251858,7 +253627,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var fernTestValueSubtype string // Act @@ -251889,7 +253658,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var fernTestValueScript *string // Act @@ -251920,7 +253689,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} var fernTestValueNext []any // Act @@ -251950,17 +253719,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCal } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -251968,7 +253737,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -251976,8 +253745,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -251985,12 +253754,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot obj.Root = expected // Act & Assert @@ -252000,7 +253769,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} obj.Root = nil // Act & Assert @@ -252009,7 +253778,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252022,7 +253791,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} var expected bool obj.Incomplete = expected @@ -252032,7 +253801,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252045,7 +253814,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} var expected int obj.WarningFlags = expected @@ -252055,7 +253824,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252068,8 +253837,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem obj.Warnings = expected // Act & Assert @@ -252079,7 +253848,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} obj.Warnings = nil // Act & Assert @@ -252088,7 +253857,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252100,12 +253869,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot // Act obj.SetRoot(fernTestValueRoot) @@ -252135,7 +253904,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} var fernTestValueIncomplete bool // Act @@ -252166,7 +253935,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} var fernTestValueWarningFlags int // Act @@ -252197,8 +253966,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -252227,17 +253996,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -252245,7 +254014,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -252253,7 +254022,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -252262,12 +254031,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType obj.Type = expected // Act & Assert @@ -252276,7 +254045,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252289,7 +254058,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var expected string obj.Subtype = expected @@ -252299,7 +254068,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252312,7 +254081,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var expected *string obj.Script = expected @@ -252323,7 +254092,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} obj.Script = nil // Act & Assert @@ -252332,7 +254101,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252345,7 +254114,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var expected []any obj.Next = expected @@ -252356,7 +254125,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} obj.Next = nil // Act & Assert @@ -252365,7 +254134,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252377,12 +254146,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType // Act obj.SetType(fernTestValueType) @@ -252412,7 +254181,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var fernTestValueSubtype string // Act @@ -252443,7 +254212,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var fernTestValueScript *string // Act @@ -252474,7 +254243,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} var fernTestValueNext []any // Act @@ -252504,17 +254273,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFor } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -252522,7 +254291,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -252530,8 +254299,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -252539,12 +254308,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot obj.Root = expected // Act & Assert @@ -252554,7 +254323,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} obj.Root = nil // Act & Assert @@ -252563,7 +254332,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252576,7 +254345,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} var expected bool obj.Incomplete = expected @@ -252586,7 +254355,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252599,7 +254368,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} var expected int obj.WarningFlags = expected @@ -252609,7 +254378,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252622,8 +254391,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem obj.Warnings = expected // Act & Assert @@ -252633,7 +254402,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} obj.Warnings = nil // Act & Assert @@ -252642,7 +254411,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252654,12 +254423,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *te } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot // Act obj.SetRoot(fernTestValueRoot) @@ -252689,7 +254458,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} var fernTestValueIncomplete bool // Act @@ -252720,7 +254489,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} var fernTestValueWarningFlags int // Act @@ -252751,8 +254520,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -252781,17 +254550,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -252799,7 +254568,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -252807,7 +254576,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -252816,12 +254585,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType obj.Type = expected // Act & Assert @@ -252830,7 +254599,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252843,7 +254612,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var expected string obj.Subtype = expected @@ -252853,7 +254622,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252866,7 +254635,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var expected *string obj.Script = expected @@ -252877,7 +254646,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} obj.Script = nil // Act & Assert @@ -252886,7 +254655,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252899,7 +254668,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var expected []any obj.Next = expected @@ -252910,7 +254679,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} obj.Next = nil // Act & Assert @@ -252919,7 +254688,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -252931,12 +254700,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType // Act obj.SetType(fernTestValueType) @@ -252966,7 +254735,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var fernTestValueSubtype string // Act @@ -252997,7 +254766,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var fernTestValueScript *string // Act @@ -253028,7 +254797,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} var fernTestValueNext []any // Act @@ -253058,17 +254827,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKey } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -253076,7 +254845,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -253084,8 +254853,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -253093,12 +254862,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot obj.Root = expected // Act & Assert @@ -253108,7 +254877,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} obj.Root = nil // Act & Assert @@ -253117,7 +254886,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253130,7 +254899,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} var expected bool obj.Incomplete = expected @@ -253140,7 +254909,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253153,7 +254922,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} var expected int obj.WarningFlags = expected @@ -253163,7 +254932,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253176,8 +254945,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem obj.Warnings = expected // Act & Assert @@ -253187,7 +254956,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} obj.Warnings = nil // Act & Assert @@ -253196,7 +254965,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253208,12 +254977,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *tes } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot // Act obj.SetRoot(fernTestValueRoot) @@ -253243,7 +255012,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} var fernTestValueIncomplete bool // Act @@ -253274,7 +255043,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} var fernTestValueWarningFlags int // Act @@ -253305,8 +255074,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -253335,17 +255104,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -253353,7 +255122,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -253361,7 +255130,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -253370,12 +255139,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType obj.Type = expected // Act & Assert @@ -253384,7 +255153,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253397,7 +255166,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var expected string obj.Subtype = expected @@ -253407,7 +255176,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253420,7 +255189,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var expected *string obj.Script = expected @@ -253431,7 +255200,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} obj.Script = nil // Act & Assert @@ -253440,7 +255209,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253453,7 +255222,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var expected []any obj.Next = expected @@ -253464,7 +255233,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} obj.Next = nil // Act & Assert @@ -253473,7 +255242,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -253485,12 +255254,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType // Act obj.SetType(fernTestValueType) @@ -253520,7 +255289,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var fernTestValueSubtype string // Act @@ -253551,7 +255320,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var fernTestValueScript *string // Act @@ -253582,7 +255351,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} var fernTestValueNext []any // Act @@ -253612,220 +255381,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsVal } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry - // Should not 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("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone - obj.None = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - obj.None = nil - - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry - // Should not 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported - obj.Unsupported = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible // Should not 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetWarningFlags() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot // Act - obj.SetValues(fernTestValueValues) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253849,54 +255563,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultVal // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueIncomplete bool // Act - obj.SetValue(fernTestValueValue) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253920,147 +255594,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultVal // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueWarningFlags int // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254084,14 +255625,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem // Act - obj.SetRequired(fernTestValueRequired) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254115,208 +255656,167 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - var fernTestValueNoExport bool - - // Act - obj.SetNoExport(fernTestValueNoExport) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - var fernTestValueRaw int - - // Act - obj.SetRaw(fernTestValueRaw) - - // Assert - 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("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + 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("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + 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("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot // Should not 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.GetScript() // Should return zero value }) -} + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var expected []any + obj.Next = expected -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + obj.Next = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254340,54 +255840,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t * // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254411,222 +255871,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefObjectN // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry - // Should not 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} - 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueScript *string // Act - obj.SetValues(fernTestValueValues) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254650,54 +255902,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntry // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} - 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + var fernTestValueNext []any // Act - obj.SetValue(fernTestValueValue) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254723,83 +255935,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntry } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) +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("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var expected int - obj.AnnotObjectNumber = expected + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + 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.GetAnnotObjectNumber() // 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 := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} 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 *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + 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.GetPageObjectNumber() // Should return zero value + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + 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 *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.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + var fernTestValueR int // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254823,14 +256066,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsIte // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + var fernTestValueG int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254854,537 +256097,364 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsIte // 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 -func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetB(fernTestValueB) - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - 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("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - 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("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin - obj.SetOrigin(fernTestValueOrigin) - assert.Equal(t, fernTestValueOrigin, obj.Origin) - 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("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) +} + +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) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueAlternateName *string - obj.SetAlternateName(fernTestValueAlternateName) - assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueMappingName *string - obj.SetMappingName(fernTestValueMappingName) - assert.Equal(t, fernTestValueMappingName, obj.MappingName) + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry - obj.SetValueEntry(fernTestValueValueEntry) - assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) - assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + 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 := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemRadioActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem - obj.SetWidgets(fernTestValueWidgets) - assert.Equal(t, fernTestValueWidgets, obj.Widgets) + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) 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) + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) 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) + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) 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("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioRef - 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 := &DocFormsGet200ResponseFieldsItemRadio{} - 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 *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.GetRef() // Should return zero value - }) - - t.Run("GetFieldObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - 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 *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.GetFieldObjectNumber() // Should return zero value - }) - - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - 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 *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.GetName() // Should return zero value - }) - - t.Run("GetOrigin", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected DocFormsGet200ResponseFieldsItemRadioOrigin - obj.Origin = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") - }) - - t.Run("GetOrigin_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.GetOrigin() // Should return zero value - }) - - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioFlags - 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) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetFlags() // Should return zero value - }) - - t.Run("GetAlternateName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *string - obj.AlternateName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.AlternateName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetAlternateName() // Should return zero value - }) - - t.Run("GetMappingName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *string - obj.MappingName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.MappingName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetMappingName() // Should return zero value - }) - - t.Run("GetValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntry - obj.ValueEntry = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.ValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetValueEntry() // Should return zero value - }) - - t.Run("GetDefaultValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry - obj.DefaultValueEntry = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.DefaultValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetDefaultValueEntry() // Should return zero value - }) - - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioActions - obj.Actions = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetActions() // Should return zero value - }) - - t.Run("GetWidgets", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem - obj.Widgets = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - obj.Widgets = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetWidgets() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetValue", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetValue() // Should return zero value + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetRadiosInUnison", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool - obj.RadiosInUnison = expected + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetRadiosInUnison(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetRadiosInUnison_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetRadiosInUnison() // Should return zero value + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetNoToggleToOff", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool - obj.NoToggleToOff = expected + obj.LockedContents = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoToggleToOff(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetNoToggleToOff_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + 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.GetNoToggleToOff() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + 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) @@ -255408,14 +256478,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(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("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueHidden bool // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255439,14 +256509,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(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("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValuePrint bool // Act - obj.SetName(fernTestValueName) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255470,14 +256540,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(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("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueNoZoom bool // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255501,14 +256571,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(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("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueNoRotate bool // Act - obj.SetFlags(fernTestValueFlags) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255532,14 +256602,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueNoView bool // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255563,14 +256633,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(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("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueReadOnly bool // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255594,14 +256664,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueLocked bool // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255625,14 +256695,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("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255656,14 +256726,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("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemRadioActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + var fernTestValueLockedContents bool // Act - obj.SetActions(fernTestValueActions) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -255687,342 +256757,251 @@ 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) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + 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") }) - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - 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 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + // Should not 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("SetRadiosInUnison_MarksExplicit", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRadiosInUnison bool - - // Act - obj.SetRadiosInUnison(fernTestValueRadiosInUnison) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + 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("SetNoToggleToOff_MarksExplicit", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueNoToggleToOff bool - - // Act - obj.SetNoToggleToOff(fernTestValueNoToggleToOff) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemRadioActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + obj.ObjectNumber = nil - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemRadioActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemRadioActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) - assert.NotNil(t, obj.explicitFields) + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + // Should not 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 }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - obj.Keystroke = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - obj.Keystroke = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeystroke() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetFormat", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsFormat - obj.Format = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - obj.Format = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormat() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetValidate", func(t *testing.T) { +} + +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) + }) + + 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("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocFormsGet200ResponseFieldsItemRadioActions{} - obj.Validate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValidate() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetCalculate", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - obj.Calculate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculate() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - - // Act - obj.SetKeystroke(fernTestValueKeystroke) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemRadioActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetFormat(fernTestValueFormat) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256046,14 +257025,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActions(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemRadioActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetValidate(fernTestValueValidate) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256077,14 +257056,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActions(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256110,196 +257089,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActions(t *test } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) +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) }) - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + 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("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + 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) }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - obj.Root = nil - - // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") - }) - - t.Run("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIncomplete() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var expected int - obj.WarningFlags = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarnings() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - - // Act - obj.SetRoot(fernTestValueRoot) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256323,14 +257220,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256354,14 +257251,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256387,165 +257284,83 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) +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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + 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.GetType() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var expected string - obj.Subtype = expected + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + 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.GetSubtype() // Should return zero value - }) - - t.Run("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var expected *string - 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 := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - 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 *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - // Should not 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("GetNext", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var expected []any - obj.Next = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") - }) - - t.Run("GetNext_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - obj.Next = nil - - // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") - }) - - t.Run("GetNext_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNext() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetType(fernTestValueType) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256569,14 +257384,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} + var fernTestValueNm string // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256600,14 +257415,85 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { +} + +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 := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueScript *string + 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetScript(fernTestValueScript) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256631,14 +257517,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetNext(fernTestValueNext) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256664,196 +257550,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculat } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) +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("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + 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("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - obj.Root = nil - - // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") - }) - - t.Run("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + 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.GetIncomplete() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} var expected int - obj.WarningFlags = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + 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.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + 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.GetWarnings() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - - // Act - obj.SetRoot(fernTestValueRoot) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueR int // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256877,14 +257681,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormat(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueG int // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256908,14 +257712,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormat(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueB int // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -256941,165 +257745,145 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormat(t } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) +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("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) + 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("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + 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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + 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.GetType() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + 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.GetSubtype() // Should return zero value - }) - - t.Run("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var expected *string - obj.Script = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + 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.GetScript() // Should return zero value - }) - - t.Run("GetNext", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var expected []any - obj.Next = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + 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.GetNext() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueLeft float64 // Act - obj.SetType(fernTestValueType) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257123,14 +257907,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormatRo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueBottom float64 // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257154,14 +257938,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormatRo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueRight float64 // Act - obj.SetScript(fernTestValueScript) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257185,14 +257969,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormatRo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueTop float64 // Act - obj.SetNext(fernTestValueNext) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257218,165 +258002,145 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormatRo } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) +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("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + 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("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + 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("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - obj.Root = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + 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.GetRoot() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetIncomplete", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + 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.GetIncomplete() // Should return zero value + _ = obj.GetTop() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var expected int - obj.WarningFlags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + 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.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + 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.GetWarnings() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueLeft float64 // Act - obj.SetRoot(fernTestValueRoot) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257400,14 +258164,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystrok // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueTop float64 // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257431,14 +258195,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystrok // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueRight float64 // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257462,14 +258226,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystrok // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueBottom float64 // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257495,473 +258259,249 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystrok } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + 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.GetType() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + // 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.GetSubtype() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetScript", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var expected *string - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + 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.GetScript() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetNext", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + 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.GetNext() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType - - // Act - obj.SetType(fernTestValueType) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueSubtype string - - // 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("SetScript_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueScript *string - - // 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("SetNext_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - var fernTestValueNext []any - - // Act - obj.SetNext(fernTestValueNext) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This 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.GetIndex() // Should return zero value }) } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) +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("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + 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("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - obj.Root = nil - - // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") - }) - - t.Run("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + 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.GetIncomplete() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var expected int - obj.WarningFlags = expected + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + 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.GetWarningFlags() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetWarnings", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem - obj.Warnings = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + 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.GetWarnings() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - - // Act - obj.SetRoot(fernTestValueRoot) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -257985,14 +258525,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var fernTestValueIndex int // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258016,14 +258556,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258049,165 +258589,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate } -func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) +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("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + 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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType - obj.Type = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") - }) - - t.Run("GetType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetType() // Should return zero value - }) - - t.Run("GetSubtype", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var expected string - obj.Subtype = expected + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + 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.GetSubtype() // Should return zero value - }) - - t.Run("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var expected *string - obj.Script = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + 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.GetScript() // Should return zero value - }) - - t.Run("GetNext", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var expected []any - obj.Next = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + 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.GetNext() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetType(fernTestValueType) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258231,14 +258720,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258262,14 +258751,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetScript(fernTestValueScript) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258293,253 +258782,218 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - var fernTestValueNext []any - - // Act - obj.SetNext(fernTestValueNext) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +} - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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 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) + }) - // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + 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.GetKind() // Should return zero value - }) - - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone - obj.None = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + 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.GetNone() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetScalar_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - obj.Scalar = 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.GetScalar(), "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("GetScalar_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry - // Should not 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 + // Note: This does not 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", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var fernTestValueNm string - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") - }) + // Act + obj.SetNm(fernTestValueNm) - t.Run("GetArray_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - obj.Array = 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.GetArray(), "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("GetArray_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry - // Should not 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 + // Note: This does not 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", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported - obj.Unsupported = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") +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("GetUnsupported_NilValue", func(t *testing.T) { + 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + 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.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} - var expected []string - obj.Values = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + 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.GetValues() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetValues(fernTestValueValues) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258563,54 +259017,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEnt // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} - 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetValue(fernTestValueValue) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258636,145 +259050,145 @@ 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 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("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) + 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("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) + 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("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + 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 *DocFormsGet200ResponseFieldsItemRadioFlags + 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.GetReadOnly() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + 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.GetRequired() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + 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.GetNoExport() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + 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.GetRaw() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + 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) @@ -258798,14 +259212,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("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueBottom float64 // Act - obj.SetRequired(fernTestValueRequired) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258829,14 +259243,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("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueRight float64 // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258860,14 +259274,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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueTop float64 // Act - obj.SetRaw(fernTestValueRaw) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -258893,720 +259307,945 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemRadioRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - var expected string - obj.Kind = expected +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) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + 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("GetKind_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.GetKind() // Should return zero value + 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("GetObjectNumber", func(t *testing.T) { + 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) + }) + + 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) + }) + + 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) + }) + + 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) + 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) + 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + 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) + 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) + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - var expected *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Ref = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRef + 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.GetObjectNumber() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - var expected *DocFormsGet200ResponseFieldsItemRadioRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber_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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRef + 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.GetFqn() // Should return zero value - }) - -} - -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) + _ = obj.GetIndex() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRefFqn + 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.GetName() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.Nm = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Nm = nil // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + 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.GetFieldObjectNumber() // Should return zero value + _ = obj.GetNm() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + 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") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Flags = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + 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.GetKind() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) - t.Run("GetNone", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Rect = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + 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.GetNone() // Should return zero value + _ = obj.GetRect() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Contents = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + 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.GetScalar() // Should return zero value + _ = obj.GetContents() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.Subject = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Subject = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + 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.GetArray() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Author = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + 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.GetUnsupported() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) -} + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *time.Time + obj.Created = expected -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) + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Created = nil -func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + // 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 *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 + }) + + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Modified = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryArray + 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.GetValues() // Should return zero value + _ = obj.GetModified() // Should return zero value }) -} + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode + obj.BlendMode = expected -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + // 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 *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 + }) + + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + obj.InReplyTo = expected - // Act - obj.SetValues(fernTestValueValues) + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "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("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + 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 *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 }) -} + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType + obj.ReplyType = expected -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) + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.ReplyType = nil -func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + // 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 *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 + }) + + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + 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 *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.GetValue() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) -} + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.GroupID = expected -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + // 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 := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.GroupID = nil - // Act - obj.SetValue(fernTestValueValue) + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "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("GetGroupID_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.GetGroupID() // 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("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.CreatedBy = 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.GetCreatedBy(), "getter should return the property value") }) -} + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.CreatedBy = nil -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) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetCreatedBy_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.GetCreatedBy() // Should return zero value }) - 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("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - 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("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - 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) + t.Run("GetUpdatedBy_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.GetUpdatedBy() // Should return zero value }) -} + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + obj.Actions = expected -func TestGettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + // 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 := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Actions = nil // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + 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.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + // 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.GetPageObjectNumber() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetOnState", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected string - obj.OnState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetOnState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetOnState_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + 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.GetOnState() // Should return zero value + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetExportValue", func(t *testing.T) { + t.Run("GetIcon", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected string - obj.ExportValue = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon + obj.Icon = expected // Act & Assert - assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") }) - t.Run("GetExportValue_NilReceiver", func(t *testing.T) { + t.Run("GetIcon_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + 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.GetExportValue() // Should return zero value + _ = obj.GetIcon() // Should return zero value }) - t.Run("GetChecked", func(t *testing.T) { + t.Run("GetFile", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected bool - obj.Checked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + obj.File = expected // Act & Assert - assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") }) - t.Run("GetChecked_NilReceiver", func(t *testing.T) { + t.Run("GetFile_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + // 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.GetChecked() // Should return zero value + _ = obj.GetFile() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -259633,7 +260272,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t * t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValuePageObjectNumber int // Act @@ -259661,14 +260300,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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueOnState string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIndex int // Act - obj.SetOnState(fernTestValueOnState) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -259692,14 +260331,14 @@ 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.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueExportValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality // Act - obj.SetExportValue(fernTestValueExportValue) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -259723,14 +260362,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChecked_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueChecked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueNm *string // Act - obj.SetChecked(fernTestValueChecked) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -259754,444 +260393,262 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t * // 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) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemSignatureActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - 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) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureRef - 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 := &DocFormsGet200ResponseFieldsItemSignature{} - 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 *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.GetRef() // Should return zero value - }) - - t.Run("GetFieldObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - 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 *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 - }) - - t.Run("GetName", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags - // 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 *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.GetName() // Should return zero value - }) + // Act + obj.SetFlags(fernTestValueFlags) - t.Run("GetOrigin", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected DocFormsGet200ResponseFieldsItemSignatureOrigin - obj.Origin = 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.GetOrigin(), "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("GetOrigin_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.GetOrigin() // 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("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") - }) + // Act + obj.SetRect(fernTestValueRect) - t.Run("GetFlags_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - 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 *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 + // Note: This does not 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", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *string - obj.AlternateName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueContents *string - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") - }) + // Act + obj.SetContents(fernTestValueContents) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.AlternateName = 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.GetAlternateName(), "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("GetAlternateName_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.GetAlternateName() // 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("GetMappingName", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *string - obj.MappingName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueSubject *string - // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") - }) + // Act + obj.SetSubject(fernTestValueSubject) - t.Run("GetMappingName_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.MappingName = 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.GetMappingName(), "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("GetMappingName_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.GetMappingName() // 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("GetValueEntry", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntry - obj.ValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueAuthor *string - // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") - }) + // Act + obj.SetAuthor(fernTestValueAuthor) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.ValueEntry = 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.GetValueEntry(), "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("GetValueEntry_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.GetValueEntry() // 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("GetDefaultValueEntry", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - obj.DefaultValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueCreated *time.Time - // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") - }) + // Act + obj.SetCreated(fernTestValueCreated) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.DefaultValueEntry = 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.GetDefaultValueEntry(), "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("GetDefaultValueEntry_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.GetDefaultValueEntry() // 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("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueModified *time.Time - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") - }) + // Act + obj.SetModified(fernTestValueModified) - t.Run("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - 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 *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.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("GetWidgets", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - obj.Widgets = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode - // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") - }) + // Act + obj.SetBlendMode(fernTestValueBlendMode) - t.Run("GetWidgets_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.Widgets = 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.GetWidgets(), "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("GetWidgets_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.GetWidgets() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemSignatureRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Act - obj.SetRef(fernTestValueRef) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260215,14 +260672,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("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260246,14 +260703,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("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueUserID *string // Act - obj.SetName(fernTestValueName) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260277,14 +260734,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("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemSignatureOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueGroupID *string // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260308,14 +260765,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("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemSignatureFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueCreatedBy *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260339,14 +260796,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("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueUpdatedBy *string // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260370,14 +260827,14 @@ 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.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260401,14 +260858,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260432,14 +260889,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueOpacity float64 // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260463,14 +260920,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetIcon_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemSignatureActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon // Act - obj.SetActions(fernTestValueActions) + obj.SetIcon(fernTestValueIcon) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260494,14 +260951,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("SetFile_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueFile *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetFile(fernTestValueFile) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260527,185 +260984,472 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemSignatureActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemSignatureActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke - obj.Keystroke = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + obj.Activate = expected // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") }) - t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Run("GetActivate_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - obj.Keystroke = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.Activate = nil // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") }) - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Run("GetActivate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeystroke() // Should return zero value + _ = obj.GetActivate() // Should return zero value }) - t.Run("GetFormat", func(t *testing.T) { + t.Run("GetCursorEnter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsFormat - obj.Format = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + obj.CursorEnter = expected // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") }) - t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - obj.Format = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.CursorEnter = nil // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") }) - t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormat() // Should return zero value + _ = obj.GetCursorEnter() // Should return zero value }) - t.Run("GetValidate", func(t *testing.T) { + t.Run("GetCursorExit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + obj.CursorExit = expected // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") }) - t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Run("GetCursorExit_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - obj.Validate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.CursorExit = nil // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") }) - t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValidate() // Should return zero value + _ = obj.GetCursorExit() // Should return zero value }) - t.Run("GetCalculate", func(t *testing.T) { + t.Run("GetMouseDown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + obj.MouseDown = expected // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") }) - t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Run("GetMouseDown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - obj.Calculate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.MouseDown = nil // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") }) - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculate() // Should return zero value + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetActivate(fernTestValueActivate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260729,14 +261473,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActions(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter // Act - obj.SetFormat(fernTestValueFormat) + obj.SetCursorEnter(fernTestValueCursorEnter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260760,14 +261504,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActions(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit // Act - obj.SetValidate(fernTestValueValidate) + obj.SetCursorExit(fernTestValueCursorExit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260791,14 +261535,231 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActions(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -260824,17 +261785,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActions(t * } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -260842,7 +261803,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -260850,8 +261811,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -260859,12 +261820,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot obj.Root = expected // Act & Assert @@ -260874,7 +261835,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} obj.Root = nil // Act & Assert @@ -260883,7 +261844,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -260896,7 +261857,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} var expected bool obj.Incomplete = expected @@ -260906,7 +261867,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -260919,7 +261880,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} var expected int obj.WarningFlags = expected @@ -260929,7 +261890,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -260942,8 +261903,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem obj.Warnings = expected // Act & Assert @@ -260953,7 +261914,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} obj.Warnings = nil // Act & Assert @@ -260962,7 +261923,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -260974,12 +261935,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *tes } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot // Act obj.SetRoot(fernTestValueRoot) @@ -261009,7 +261970,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} var fernTestValueIncomplete bool // Act @@ -261040,7 +262001,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} var fernTestValueWarningFlags int // Act @@ -261071,8 +262032,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -261101,17 +262062,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -261119,7 +262080,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -261127,7 +262088,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -261136,12 +262097,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType obj.Type = expected // Act & Assert @@ -261150,7 +262111,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261163,7 +262124,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var expected string obj.Subtype = expected @@ -261173,7 +262134,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261186,7 +262147,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var expected *string obj.Script = expected @@ -261197,7 +262158,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} obj.Script = nil // Act & Assert @@ -261206,7 +262167,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261219,7 +262180,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var expected []any obj.Next = expected @@ -261230,7 +262191,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} obj.Next = nil // Act & Assert @@ -261239,7 +262200,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261251,12 +262212,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType // Act obj.SetType(fernTestValueType) @@ -261286,7 +262247,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var fernTestValueSubtype string // Act @@ -261317,7 +262278,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var fernTestValueScript *string // Act @@ -261348,7 +262309,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} var fernTestValueNext []any // Act @@ -261378,17 +262339,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalc } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -261396,7 +262357,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -261404,8 +262365,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -261413,12 +262374,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot obj.Root = expected // Act & Assert @@ -261428,7 +262389,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} obj.Root = nil // Act & Assert @@ -261437,7 +262398,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261450,7 +262411,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} var expected bool obj.Incomplete = expected @@ -261460,7 +262421,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261473,7 +262434,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} var expected int obj.WarningFlags = expected @@ -261483,7 +262444,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261496,8 +262457,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem obj.Warnings = expected // Act & Assert @@ -261507,7 +262468,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} obj.Warnings = nil // Act & Assert @@ -261516,7 +262477,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261528,12 +262489,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testin } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot // Act obj.SetRoot(fernTestValueRoot) @@ -261563,7 +262524,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} var fernTestValueIncomplete bool // Act @@ -261594,7 +262555,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} var fernTestValueWarningFlags int // Act @@ -261625,8 +262586,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -261655,17 +262616,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -261673,7 +262634,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -261681,7 +262642,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -261690,12 +262651,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType obj.Type = expected // Act & Assert @@ -261704,7 +262665,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261717,7 +262678,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var expected string obj.Subtype = expected @@ -261727,7 +262688,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261740,7 +262701,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var expected *string obj.Script = expected @@ -261751,7 +262712,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} obj.Script = nil // Act & Assert @@ -261760,7 +262721,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261773,7 +262734,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var expected []any obj.Next = expected @@ -261784,7 +262745,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} obj.Next = nil // Act & Assert @@ -261793,7 +262754,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -261805,12 +262766,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *te } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType // Act obj.SetType(fernTestValueType) @@ -261840,7 +262801,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var fernTestValueSubtype string // Act @@ -261871,7 +262832,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var fernTestValueScript *string // Act @@ -261902,7 +262863,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} var fernTestValueNext []any // Act @@ -261932,17 +262893,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsForm } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -261950,7 +262911,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -261958,8 +262919,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -261967,12 +262928,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot obj.Root = expected // Act & Assert @@ -261982,7 +262943,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} obj.Root = nil // Act & Assert @@ -261991,7 +262952,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262004,7 +262965,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} var expected bool obj.Incomplete = expected @@ -262014,7 +262975,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262027,7 +262988,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} var expected int obj.WarningFlags = expected @@ -262037,7 +262998,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262050,8 +263011,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem obj.Warnings = expected // Act & Assert @@ -262061,7 +263022,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} obj.Warnings = nil // Act & Assert @@ -262070,7 +263031,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262082,12 +263043,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *tes } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot // Act obj.SetRoot(fernTestValueRoot) @@ -262117,7 +263078,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} var fernTestValueIncomplete bool // Act @@ -262148,7 +263109,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} var fernTestValueWarningFlags int // Act @@ -262179,8 +263140,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -262209,17 +263170,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -262227,7 +263188,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -262235,7 +263196,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -262244,12 +263205,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType obj.Type = expected // Act & Assert @@ -262258,7 +263219,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262271,7 +263232,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var expected string obj.Subtype = expected @@ -262281,7 +263242,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262294,7 +263255,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var expected *string obj.Script = expected @@ -262305,7 +263266,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} obj.Script = nil // Act & Assert @@ -262314,7 +263275,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262327,7 +263288,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var expected []any obj.Next = expected @@ -262338,7 +263299,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} obj.Next = nil // Act & Assert @@ -262347,7 +263308,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262359,12 +263320,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType // Act obj.SetType(fernTestValueType) @@ -262394,7 +263355,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var fernTestValueSubtype string // Act @@ -262425,7 +263386,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var fernTestValueScript *string // Act @@ -262456,7 +263417,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} var fernTestValueNext []any // Act @@ -262486,17 +263447,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeys } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -262504,7 +263465,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -262512,8 +263473,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -262521,12 +263482,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot obj.Root = expected // Act & Assert @@ -262536,7 +263497,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} obj.Root = nil // Act & Assert @@ -262545,7 +263506,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262558,7 +263519,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} var expected bool obj.Incomplete = expected @@ -262568,7 +263529,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262581,7 +263542,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} var expected int obj.WarningFlags = expected @@ -262591,7 +263552,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262604,8 +263565,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem obj.Warnings = expected // Act & Assert @@ -262615,7 +263576,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} obj.Warnings = nil // Act & Assert @@ -262624,7 +263585,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262636,12 +263597,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot // Act obj.SetRoot(fernTestValueRoot) @@ -262671,7 +263632,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} var fernTestValueIncomplete bool // Act @@ -262702,7 +263663,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} var fernTestValueWarningFlags int // Act @@ -262733,8 +263694,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -262763,17 +263724,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -262781,7 +263742,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -262789,7 +263750,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -262798,12 +263759,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType obj.Type = expected // Act & Assert @@ -262812,7 +263773,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262825,7 +263786,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var expected string obj.Subtype = expected @@ -262835,7 +263796,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262848,7 +263809,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var expected *string obj.Script = expected @@ -262859,7 +263820,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} obj.Script = nil // Act & Assert @@ -262868,7 +263829,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262881,7 +263842,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var expected []any obj.Next = expected @@ -262892,7 +263853,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} obj.Next = nil // Act & Assert @@ -262901,7 +263862,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -262913,12 +263874,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t * } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType // Act obj.SetType(fernTestValueType) @@ -262948,7 +263909,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var fernTestValueSubtype string // Act @@ -262979,7 +263940,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var fernTestValueScript *string // Act @@ -263010,7 +263971,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} var fernTestValueNext []any // Act @@ -263040,220 +264001,196 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsVali } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected string - obj.Kind = expected +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) - 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("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus // Should not 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") + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus // Should not 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") + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus // Should not 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) + _ = obj.GetWarnings() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetRoot(fernTestValueRoot) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - 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 *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueIncomplete bool // Act - obj.SetValues(fernTestValueValues) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263277,54 +264214,45 @@ 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.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem // Act - obj.SetValue(fernTestValueValue) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263350,145 +264278,165 @@ 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263512,14 +264460,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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueSubtype string // Act - obj.SetRequired(fernTestValueRequired) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263543,14 +264491,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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueScript *string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263574,14 +264522,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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + var fernTestValueNext []any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263607,144 +264555,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - var expected string - obj.Kind = expected +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRef - // Should not 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("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - var expected *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - var expected *DocFormsGet200ResponseFieldsItemSignatureRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown // Should not 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.GetWarningFlags() // Should return zero value }) -} + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem + obj.Warnings = 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.GetWarnings(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + obj.Warnings = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRefFqn + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263768,54 +264737,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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueIncomplete bool - // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetIncomplete(fernTestValueIncomplete) - 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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueWarningFlags int // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -263839,222 +264799,198 @@ 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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetWarnings(fernTestValueWarnings) - 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + 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("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - obj.Scalar = expected + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot // Should not 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 := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot // Should not 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.GetScript() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType // Act - obj.SetValues(fernTestValueValues) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -264078,54 +265014,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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueSubtype string // Act - obj.SetValue(fernTestValueValue) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -264149,85 +265045,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryS // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - 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 *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - // Should not 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 := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - 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 *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - // Should not panic - getters should handle nil 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueScript *string // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -264251,14 +265076,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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + var fernTestValueNext []any // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -264284,638 +265109,442 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem } -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("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemTextActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - 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) - }) - - 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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) 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("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) 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("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + obj.Root = 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 *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.GetRef() // Should return zero value + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + obj.Root = nil // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetOrigin", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected DocFormsGet200ResponseFieldsItemTextOrigin - obj.Origin = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp // Should not 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.GetWarnings() // Should return zero value }) - t.Run("GetAlternateName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *string - obj.AlternateName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") - }) +} - t.Run("GetAlternateName_NilValue", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.AlternateName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot - // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") - }) + // Act + obj.SetRoot(fernTestValueRoot) - t.Run("GetAlternateName_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.GetAlternateName() // 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("GetMappingName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *string - obj.MappingName = 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.GetMappingName(), "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("GetMappingName_NilValue", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.MappingName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueIncomplete bool - // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") - }) + // Act + obj.SetIncomplete(fernTestValueIncomplete) - t.Run("GetMappingName_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.GetMappingName() // 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("GetValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntry - obj.ValueEntry = 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.GetValueEntry(), "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("GetValueEntry_NilValue", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.ValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetValueEntry_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.GetValueEntry() // 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("GetDefaultValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry - obj.DefaultValueEntry = 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.GetDefaultValueEntry(), "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("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.DefaultValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem - // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") - }) + // Act + obj.SetWarnings(fernTestValueWarnings) - t.Run("GetDefaultValueEntry_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.GetDefaultValueEntry() // 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("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextActions - obj.Actions = 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.GetActions(), "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("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Actions = nil +} - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetActions_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.GetActions() // Should return zero value + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetWidgets", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected []*DocFormsGet200ResponseFieldsItemTextWidgetsItem - obj.Widgets = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Widgets = nil - - // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetWidgets_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.GetWidgets() // Should return zero value - }) +} - t.Run("GetValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot // Should not 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 + _ = obj.GetType() // Should return zero value }) - t.Run("GetDefaultValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} var expected string - obj.DefaultValue = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetDefaultValue_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot // Should not 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") + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetMaxLength_NilValue", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.MaxLength = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var expected *string + obj.Script = expected // 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 + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMultiline", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected bool - obj.Multiline = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + obj.Script = nil // Act & Assert - assert.Equal(t, expected, obj.GetMultiline(), "getter should return the property value") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetMultiline_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot // Should not 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 + _ = obj.GetScript() // Should return zero value }) - t.Run("GetPassword", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected bool - obj.Password = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var expected []any + obj.Next = 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 + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetComb", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected bool - obj.Comb = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + obj.Next = nil // Act & Assert - assert.Equal(t, expected, obj.GetComb(), "getter should return the property value") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetComb_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot // Should not 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 + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType // Act - obj.SetRef(fernTestValueRef) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -264939,14 +265568,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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueSubtype string // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -264970,14 +265599,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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueScript *string // Act - obj.SetName(fernTestValueName) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265001,14 +265630,14 @@ 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) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemTextOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + var fernTestValueNext []any // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265032,45 +265661,167 @@ 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) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + obj.Root = expected - // Act - obj.SetFlags(fernTestValueFlags) + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "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("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + obj.Root = 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.GetRoot(), "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("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265094,14 +265845,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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueIncomplete bool // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265125,14 +265876,14 @@ 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) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueWarningFlags int // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265156,14 +265907,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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265187,14 +265938,167 @@ 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) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemTextActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType // Act - obj.SetActions(fernTestValueActions) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265218,14 +266122,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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueSubtype string // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265249,14 +266153,14 @@ 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) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueScript *string // Act - obj.SetValue(fernTestValueValue) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265280,14 +266184,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValue_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueDefaultValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + var fernTestValueNext []any // Act - obj.SetDefaultValue(fernTestValueDefaultValue) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265311,14 +266215,167 @@ 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMaxLength *int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot // Act - obj.SetMaxLength(fernTestValueMaxLength) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265342,14 +266399,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMultiline_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMultiline bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueIncomplete bool // Act - obj.SetMultiline(fernTestValueMultiline) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265373,14 +266430,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPassword_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValuePassword bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueWarningFlags int // Act - obj.SetPassword(fernTestValuePassword) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265404,14 +266461,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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueComb bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem // Act - obj.SetComb(fernTestValueComb) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265437,185 +266494,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { } -func TestSettersDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemTextActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemTextActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemTextActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemTextActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsKeystroke - obj.Keystroke = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") - }) - - t.Run("GetKeystroke_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - obj.Keystroke = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeystroke() // Should return zero value - }) - - t.Run("GetFormat", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsFormat - obj.Format = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - obj.Format = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormat() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetValidate", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - obj.Validate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValidate() // Should return zero value + _ = obj.GetScript() // Should return zero value }) - t.Run("GetCalculate", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - obj.Calculate = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculate() // Should return zero value + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265639,14 +266676,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActions(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemTextActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetFormat(fernTestValueFormat) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265670,14 +266707,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActions(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemTextActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueScript *string // Act - obj.SetValidate(fernTestValueValidate) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265701,14 +266738,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActions(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemTextActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + var fernTestValueNext []any // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -265734,17 +266771,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActions(t *testi } -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -265752,7 +266789,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -265760,8 +266797,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -265769,12 +266806,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. } -func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot obj.Root = expected // Act & Assert @@ -265784,7 +266821,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} obj.Root = nil // Act & Assert @@ -265793,7 +266830,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -265806,7 +266843,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} var expected bool obj.Incomplete = expected @@ -265816,7 +266853,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -265829,7 +266866,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} var expected int obj.WarningFlags = expected @@ -265839,7 +266876,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -265852,8 +266889,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem obj.Warnings = expected // Act & Assert @@ -265863,7 +266900,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} obj.Warnings = nil // Act & Assert @@ -265872,7 +266909,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -265884,12 +266921,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing. } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot // Act obj.SetRoot(fernTestValueRoot) @@ -265919,7 +266956,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} var fernTestValueIncomplete bool // Act @@ -265950,7 +266987,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} var fernTestValueWarningFlags int // Act @@ -265981,8 +267018,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -266011,17 +267048,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate } -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -266029,7 +267066,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -266037,7 +267074,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -266046,12 +267083,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType obj.Type = expected // Act & Assert @@ -266060,7 +267097,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266073,7 +267110,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var expected string obj.Subtype = expected @@ -266083,7 +267120,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266096,7 +267133,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var expected *string obj.Script = expected @@ -266107,7 +267144,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} obj.Script = nil // Act & Assert @@ -266116,7 +267153,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266129,7 +267166,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var expected []any obj.Next = expected @@ -266140,7 +267177,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} obj.Next = nil // Act & Assert @@ -266149,7 +267186,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266161,12 +267198,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType // Act obj.SetType(fernTestValueType) @@ -266196,7 +267233,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var fernTestValueSubtype string // Act @@ -266227,7 +267264,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var fernTestValueScript *string // Act @@ -266258,7 +267295,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} var fernTestValueNext []any // Act @@ -266288,17 +267325,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate } -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -266306,7 +267343,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -266314,8 +267351,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -266323,12 +267360,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) } -func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot obj.Root = expected // Act & Assert @@ -266338,7 +267375,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} obj.Root = nil // Act & Assert @@ -266347,7 +267384,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266360,7 +267397,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} var expected bool obj.Incomplete = expected @@ -266370,7 +267407,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266383,7 +267420,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} var expected int obj.WarningFlags = expected @@ -266393,7 +267430,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266406,8 +267443,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem obj.Warnings = expected // Act & Assert @@ -266417,7 +267454,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} obj.Warnings = nil // Act & Assert @@ -266426,7 +267463,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266438,12 +267475,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot // Act obj.SetRoot(fernTestValueRoot) @@ -266473,7 +267510,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormat(t t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} var fernTestValueIncomplete bool // Act @@ -266504,7 +267541,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormat(t t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} var fernTestValueWarningFlags int // Act @@ -266535,8 +267572,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormat(t t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -266565,17 +267602,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormat(t } -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -266583,7 +267620,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -266591,7 +267628,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -266600,12 +267637,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing } -func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemTextActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType obj.Type = expected // Act & Assert @@ -266614,7 +267651,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266627,7 +267664,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var expected string obj.Subtype = expected @@ -266637,7 +267674,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266650,7 +267687,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var expected *string obj.Script = expected @@ -266661,7 +267698,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} obj.Script = nil // Act & Assert @@ -266670,7 +267707,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266683,7 +267720,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var expected []any obj.Next = expected @@ -266694,7 +267731,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} obj.Next = nil // Act & Assert @@ -266703,7 +267740,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -266715,12 +267752,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType // Act obj.SetType(fernTestValueType) @@ -266750,7 +267787,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormatRoo t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var fernTestValueSubtype string // Act @@ -266781,7 +267818,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormatRoo t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var fernTestValueScript *string // Act @@ -266812,7 +267849,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormatRoo t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} var fernTestValueNext []any // Act @@ -266842,165 +267879,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormatRoo } -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) +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("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + 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("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + 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 TestGettersDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot - obj.Root = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) - - t.Run("GetRoot_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - obj.Root = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var expected int + obj.R = expected // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + 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.GetRoot() // Should return zero value - }) - - t.Run("GetIncomplete", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var expected bool - obj.Incomplete = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") - }) - - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIncomplete() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} var expected int - obj.WarningFlags = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + 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.GetWarningFlags() // Should return zero value - }) - - t.Run("GetWarnings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem - obj.Warnings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + 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.GetWarnings() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueR int // Act - obj.SetRoot(fernTestValueRoot) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267024,14 +268010,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueG int // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267055,14 +268041,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueB int // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267086,198 +268072,259 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem - - // Act - obj.SetWarnings(fernTestValueWarnings) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does 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) + }) -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) + 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("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) + 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("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + 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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) + 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 TestGettersDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType - obj.Type = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + 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.GetType() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetSubtype", func(t *testing.T) { + t.Run("GetMimeType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var expected string - obj.Subtype = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *string + obj.MimeType = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMimeType(), "getter should return the property value") }) - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Run("GetMimeType_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + // 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.GetSubtype() // Should return zero value + _ = obj.GetMimeType() // Should return zero value }) - t.Run("GetScript", func(t *testing.T) { + t.Run("GetDescription", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} var expected *string - obj.Script = expected + obj.Description = expected // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDescription(), "getter should return the property value") }) - t.Run("GetScript_NilValue", func(t *testing.T) { + t.Run("GetDescription_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - obj.Script = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.Description = nil // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDescription(), "getter should return nil when property is nil") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetDescription_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + 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.GetScript() // Should return zero value + _ = obj.GetDescription() // Should return zero value }) - t.Run("GetNext", func(t *testing.T) { + t.Run("GetSize", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *int + obj.Size = expected // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") }) - t.Run("GetNext_NilValue", func(t *testing.T) { + t.Run("GetSize_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - obj.Next = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.Size = nil // Act & Assert - assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSize(), "getter should return nil when property is nil") }) - t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Run("GetSize_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + 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.GetNext() // Should return zero value + _ = 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueName string // Act - obj.SetType(fernTestValueType) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267301,14 +268348,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetMimeType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueMimeType *string // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetMimeType(fernTestValueMimeType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267332,14 +268379,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetDescription_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueDescription *string // Act - obj.SetScript(fernTestValueScript) + obj.SetDescription(fernTestValueDescription) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267363,14 +268410,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueSize *int // Act - obj.SetNext(fernTestValueNext) + 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("SetChecksum_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueChecksum *string + + // Act + obj.SetChecksum(fernTestValueChecksum) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreationDate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueCreationDate *string + + // Act + obj.SetCreationDate(fernTestValueCreationDate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267396,165 +268505,331 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke } -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) +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) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - obj.Root = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetRoot_NilValue", func(t *testing.T) { + 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 + }) + + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - obj.Root = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + 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.GetRoot() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetIncomplete", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool - obj.Incomplete = expected + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + 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.GetIncomplete() // Should return zero value + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var expected int - obj.WarningFlags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + 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.GetWarningFlags() // Should return zero value + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetWarnings", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem - obj.Warnings = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetNoRotate_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.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + 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.GetWarnings() // Should return zero value + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 *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.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 *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.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 *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.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueInvisible bool // Act - obj.SetRoot(fernTestValueRoot) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267578,14 +268853,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidate( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueHidden bool // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267609,14 +268884,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidate( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValuePrint bool // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267640,14 +268915,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidate( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueNoZoom bool // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267671,167 +268946,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidate( // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsValidateRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemTextActionsValidateRootType - obj.Type = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") - }) - - t.Run("GetType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetType() // Should return zero value - }) - - t.Run("GetSubtype", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - 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 *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - // Should not 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("GetScript", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var expected *string - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueNoRotate bool - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") - }) + // Act + obj.SetNoRotate(fernTestValueNoRotate) - t.Run("GetScript_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - obj.Script = 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.GetScript(), "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("GetScript_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNext", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") - }) + // Act + obj.SetNoView(fernTestValueNoView) - t.Run("GetNext_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - obj.Next = 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.GetNext(), "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("GetNext_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNext() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueReadOnly bool // Act - obj.SetType(fernTestValueType) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267855,14 +269039,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidateR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueLocked bool // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267886,14 +269070,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidateR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetScript(fernTestValueScript) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267917,14 +269101,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidateR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + var fernTestValueLockedContents bool // Act - obj.SetNext(fernTestValueNext) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -267950,11 +269134,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidateR } -func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntry(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} var expected string obj.Kind = expected @@ -267964,7 +269148,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntry(t *testing t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -267974,196 +269158,225 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntry(t *testing _ = obj.GetKind() // Should return zero value }) - t.Run("GetNone", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not 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.GetObjectNumber() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not 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.GetNm() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not 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.GetIndex() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - obj.Unsupported = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") +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) }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + 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("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex // Should not 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 + _ = obj.GetPageObjectNumber() // Should return zero value }) -} + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var expected int + obj.Index = expected -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) + // 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + // Should not 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 TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex // Should not 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.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetValues(fernTestValueValues) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268187,54 +269400,45 @@ 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.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var fernTestValueIndex int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetIndex(fernTestValueIndex) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(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("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Act - obj.SetValue(fernTestValueValue) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268260,145 +269464,145 @@ 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 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) }) - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + 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) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Should not 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.GetDocSessionID() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Should not 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.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Should not 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.GetGeneration() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + var fernTestValueDocSessionID string - // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") - }) + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) - t.Run("GetRaw_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.GetRaw() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { - t.Run("SetReadOnly_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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268422,14 +269626,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetRequired(fernTestValueRequired) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268453,14 +269657,85 @@ 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) { +} + +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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} + 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) @@ -268484,14 +269759,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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} + var fernTestValueNm string // Act - obj.SetRaw(fernTestValueRaw) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268517,144 +269792,278 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing } -func TestGettersDocFormsGet200ResponseFieldsItemTextRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +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 := &DocFormsGet200ResponseFieldsItemTextRef{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRef + 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.GetKind() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - var expected *DocFormsGet200ResponseFieldsItemTextRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + 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.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} + 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 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.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRef + 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.GetObjectNumber() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - var expected *DocFormsGet200ResponseFieldsItemTextRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + 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.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRef + 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.GetFqn() // 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) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetRight() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRefFqn + 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.GetName() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var fernTestValueLeft float64 // Act - obj.SetName(fernTestValueName) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268678,54 +270087,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefFqn(t *testin // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var fernTestValueBottom float64 -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) - assert.NotNil(t, obj.explicitFields) - }) + // 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") -func TestGettersDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} - 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.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRefObjectNumber - // Should not 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 - }) + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var fernTestValueRight float64 -} + // Act + obj.SetRight(fernTestValueRight) -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + var fernTestValueTop float64 // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268751,11 +270182,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefObjectNumber( } -func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntry(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} var expected string obj.Kind = expected @@ -268765,7 +270196,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntry(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -268775,196 +270206,225 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntry(t *testing.T) { _ = obj.GetKind() // Should return zero value }) - t.Run("GetNone", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + 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.GetNone() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryScalar - obj.Scalar = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + 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.GetScalar() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryArray - obj.Array = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + 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.GetArray() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported - obj.Unsupported = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") +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) }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + 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.GetUnsupported() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) -} + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var expected int + obj.Index = expected -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) + // 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 *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 + }) -func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryArray + 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.GetValues() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetValues(fernTestValueValues) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -268988,54 +270448,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryArray( // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var fernTestValueIndex int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetIndex(fernTestValueIndex) - t.Run("GetValue_NilReceiver", 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryScalar(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("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision // Act - obj.SetValue(fernTestValueValue) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269061,53 +270512,61 @@ 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) +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 := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + 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 TestGettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} + 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 *DocFormsGet200ResponseFieldsItemTextWidgetsItem + 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.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -269117,7 +270576,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextWidgetsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -269127,17 +270586,40 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { _ = obj.GetPageObjectNumber() // Should return zero value }) + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} + 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 *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 + }) + } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} + 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) @@ -269164,7 +270646,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *t t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -269192,215 +270674,737 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} + var fernTestValueGeneration int - 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) - }) + // Act + obj.SetGeneration(fernTestValueGeneration) - 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) - }) + // Assert - 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("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry - obj.SetValueEntry(fernTestValueValueEntry) - assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) - 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("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) - assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) - 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 := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemUnknownActions - 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 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("SetRawValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRawValue string - obj.SetRawValue(fernTestValueRawValue) - assert.Equal(t, fernTestValueRawValue, obj.RawValue) + 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 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) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - 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 *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.GetRef() // Should return zero value - }) - - t.Run("GetFieldObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} 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 *DocFormsGet200ResponseFieldsItemUnknown + 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.GetFieldObjectNumber() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var expected string - obj.Name = expected + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetName() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetOrigin", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected DocFormsGet200ResponseFieldsItemUnknownOrigin - obj.Origin = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetOrigin_NilReceiver", 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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} + 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 *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.GetOrigin() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} + 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 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily + 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("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{} + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality + 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 *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 + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 }) t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags obj.Flags = expected // Act & Assert @@ -269410,7 +271414,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Flags = nil // Act & Assert @@ -269419,7 +271423,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -269429,143 +271433,430 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { _ = obj.GetFlags() // Should return zero value }) - t.Run("GetAlternateName", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string - obj.AlternateName = expected + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.AlternateName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.Contents = nil // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetAlternateName() // Should return zero value + _ = obj.GetContents() // Should return zero value }) - t.Run("GetMappingName", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string - obj.MappingName = expected + obj.Subject = expected // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.MappingName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.Subject = nil // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetMappingName() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) - t.Run("GetValueEntry", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntry - obj.ValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.ValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.Author = nil // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetValueEntry() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) - t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry - obj.DefaultValueEntry = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *time.Time + obj.Created = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.DefaultValueEntry = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.Created = nil // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetDefaultValueEntry() // Should return zero value + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode + 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 *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 + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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("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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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.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") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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 }) t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions obj.Actions = expected // Act & Assert @@ -269575,7 +271866,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Actions = nil // Act & Assert @@ -269584,7 +271875,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -269594,70 +271885,472 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { _ = obj.GetActions() // Should return zero value }) - t.Run("GetWidgets", func(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - obj.Widgets = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent + obj.Intent = expected // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + 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 := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.Widgets = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily + obj.FontFamily = expected // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetWidgets() // Should return zero value + _ = obj.GetFontFamily() // Should return zero value }) - t.Run("GetRawValue", func(t *testing.T) { + t.Run("GetFontSize", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected string - obj.RawValue = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected float64 + obj.FontSize = expected // Act & Assert - assert.Equal(t, expected, obj.GetRawValue(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") }) - t.Run("GetRawValue_NilReceiver", func(t *testing.T) { + t.Run("GetFontSize_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + 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.GetRawValue() // Should return zero value + _ = 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("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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("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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle + 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 *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.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") + }) + + t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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.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") + }) + + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *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.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") + }) + + t.Run("GetCalloutLine_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.CalloutLine = nil + + // Act & Assert + assert.Nil(t, obj.GetCalloutLine(), "getter should return nil when property is nil") + }) + + t.Run("GetCalloutLine_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.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") + }) + + t.Run("GetLineEnding_NilValue", func(t *testing.T) { + t.Parallel() + // 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.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") + }) + + t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Parallel() + // 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.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") + }) + + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Parallel() + // 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.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemUnknownRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef // Act obj.SetRef(fernTestValueRef) @@ -269684,14 +272377,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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValuePageObjectNumber int // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269715,14 +272408,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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIndex int // Act - obj.SetName(fernTestValueName) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269746,14 +272439,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("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemUnknownOrigin + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269777,14 +272470,14 @@ 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.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemUnknownFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueNm *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269808,14 +272501,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueAlternateName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269839,14 +272532,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(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("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueMappingName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269870,14 +272563,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueContents *string // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269901,14 +272594,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueSubject *string // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269932,14 +272625,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("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueActions *DocFormsGet200ResponseFieldsItemUnknownActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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) @@ -269963,14 +272656,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("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueCreated *time.Time // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -269994,14 +272687,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("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRawValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueModified *time.Time // Act - obj.SetRawValue(fernTestValueRawValue) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270025,187 +272718,138 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { - t.Run("SetKeystroke", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke - obj.SetKeystroke(fernTestValueKeystroke) - assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFormat", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemUnknownActionsFormat - obj.SetFormat(fernTestValueFormat) - assert.Equal(t, fernTestValueFormat, obj.Format) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValidate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemUnknownActionsValidate - obj.SetValidate(fernTestValueValidate) - assert.Equal(t, fernTestValueValidate, obj.Validate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCalculate", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - obj.SetCalculate(fernTestValueCalculate) - assert.Equal(t, fernTestValueCalculate, obj.Calculate) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { - t.Run("GetKeystroke", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke - obj.Keystroke = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode - // Act & Assert - assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") - }) + // Act + obj.SetBlendMode(fernTestValueBlendMode) - t.Run("GetKeystroke_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - obj.Keystroke = 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.GetKeystroke(), "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("GetKeystroke_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKeystroke() // 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("GetFormat", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsFormat - obj.Format = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo - // Act & Assert - assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") - }) + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) - t.Run("GetFormat_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - obj.Format = 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.GetFormat(), "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("GetFormat_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFormat() // 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("GetValidate", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsValidate - obj.Validate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType - // Act & Assert - assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") - }) + // Act + obj.SetReplyType(fernTestValueReplyType) - t.Run("GetValidate_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - obj.Validate = 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.GetValidate(), "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("GetValidate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValidate() // 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("GetCalculate", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - obj.Calculate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueUserID *string - // Act & Assert - assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") - }) + // Act + obj.SetUserID(fernTestValueUserID) - t.Run("GetCalculate_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - obj.Calculate = 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.GetCalculate(), "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("GetCalculate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActions - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCalculate() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { - t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueGroupID *string // Act - obj.SetKeystroke(fernTestValueKeystroke) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270229,14 +272873,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueFormat *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueCreatedBy *string // Act - obj.SetFormat(fernTestValueFormat) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270260,14 +272904,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueValidate *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueUpdatedBy *string // Act - obj.SetValidate(fernTestValueValidate) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270291,14 +272935,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions // Act - obj.SetCalculate(fernTestValueCalculate) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270322,167 +272966,107 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActions(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - obj.Root = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIntent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent - // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") - }) + // Act + obj.SetIntent(fernTestValueIntent) - t.Run("GetRoot_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - obj.Root = 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.GetRoot(), "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("GetRoot_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRoot() // 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("GetIncomplete", func(t *testing.T) { + t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var expected bool - obj.Incomplete = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIncomplete() // Should return zero value - }) + // Act + obj.SetFontFamily(fernTestValueFontFamily) - t.Run("GetWarningFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var expected int - obj.WarningFlags = 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.GetWarningFlags(), "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("GetWarningFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWarningFlags() // 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("GetWarnings", func(t *testing.T) { + t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var expected []DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem - obj.Warnings = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontSize float64 - // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") - }) + // Act + obj.SetFontSize(fernTestValueFontSize) - t.Run("GetWarnings_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - obj.Warnings = 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.GetWarnings(), "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("GetWarnings_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWarnings() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign // Act - obj.SetRoot(fernTestValueRoot) + obj.SetTextAlign(fernTestValueTextAlign) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270506,14 +273090,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270537,14 +273121,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetFontColor(fernTestValueFontColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270568,14 +273152,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetInteriorColor(fernTestValueInteriorColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270599,167 +273183,138 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // 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 -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetOpacity(fernTestValueOpacity) - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) - 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("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) - 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("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) - 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 TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var expected DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType - obj.Type = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueStrokeWidth float64 - t.Run("GetType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetType() // Should return zero value - }) + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) - t.Run("GetSubtype", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var expected string - obj.Subtype = 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.GetSubtype(), "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("GetSubtype_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetScript", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var expected *string - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") - }) + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) - t.Run("GetScript_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - obj.Script = 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.GetScript(), "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("GetScript_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNext", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueDashArray []float64 - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") - }) + // Act + obj.SetDashArray(fernTestValueDashArray) - t.Run("GetNext_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - obj.Next = 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.GetNext(), "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("GetNext_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNext() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences // Act - obj.SetType(fernTestValueType) + obj.SetRectDifferences(fernTestValueRectDifferences) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270783,14 +273338,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetCalloutLine_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueCalloutLine []any // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetCalloutLine(fernTestValueCalloutLine) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270814,14 +273369,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetLineEnding_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueLineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding // Act - obj.SetScript(fernTestValueScript) + obj.SetLineEnding(fernTestValueLineEnding) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270845,14 +273400,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRotation *float64 // Act - obj.SetNext(fernTestValueNext) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -270876,167 +273431,505 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalcul // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { - t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - obj.SetRoot(fernTestValueRoot) - assert.Equal(t, fernTestValueRoot, obj.Root) + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueIncomplete bool - obj.SetIncomplete(fernTestValueIncomplete) - assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueWarningFlags int - obj.SetWarningFlags(fernTestValueWarningFlags) - assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem - obj.SetWarnings(fernTestValueWarnings) - assert.Equal(t, fernTestValueWarnings, obj.Warnings) + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { - t.Run("GetRoot", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - obj.Root = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + obj.Activate = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") }) - t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Run("GetActivate_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - obj.Root = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.Activate = nil // Act & Assert - assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") }) - t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Run("GetActivate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoot() // Should return zero value + _ = obj.GetActivate() // Should return zero value }) - t.Run("GetIncomplete", func(t *testing.T) { + t.Run("GetCursorEnter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var expected bool - obj.Incomplete = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + obj.CursorEnter = expected // Act & Assert - assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") }) - t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIncomplete() // Should return zero value + _ = obj.GetCursorEnter() // Should return zero value }) - t.Run("GetWarningFlags", func(t *testing.T) { + t.Run("GetCursorExit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var expected int - obj.WarningFlags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + obj.CursorExit = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") }) - t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Run("GetCursorExit_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarningFlags() // Should return zero value + _ = obj.GetCursorExit() // Should return zero value }) - t.Run("GetWarnings", func(t *testing.T) { + t.Run("GetMouseDown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var expected []DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem - obj.Warnings = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + obj.MouseDown = expected // Act & Assert - assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") }) - t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Run("GetMouseDown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - obj.Warnings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.MouseDown = nil // Act & Assert - assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") }) - t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWarnings() // Should return zero value + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { - t.Run("SetRoot_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate // Act - obj.SetRoot(fernTestValueRoot) + obj.SetActivate(fernTestValueActivate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271060,14 +273953,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueIncomplete bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter // Act - obj.SetIncomplete(fernTestValueIncomplete) + obj.SetCursorEnter(fernTestValueCursorEnter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271091,14 +273984,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueWarningFlags int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit // Act - obj.SetWarningFlags(fernTestValueWarningFlags) + obj.SetCursorExit(fernTestValueCursorExit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271122,14 +274015,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown // Act - obj.SetWarnings(fernTestValueWarnings) + obj.SetMouseDown(fernTestValueMouseDown) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271153,167 +274046,107 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { - t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType - obj.SetType(fernTestValueType) - assert.Equal(t, fernTestValueType, obj.Type) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueSubtype string - obj.SetSubtype(fernTestValueSubtype) - assert.Equal(t, fernTestValueSubtype, obj.Subtype) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueScript *string - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueNext []any - obj.SetNext(fernTestValueNext) - assert.Equal(t, fernTestValueNext, obj.Next) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { - t.Run("GetType", func(t *testing.T) { + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var expected DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType - obj.Type = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetType(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp - t.Run("GetType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetType() // Should return zero value - }) + // Act + obj.SetMouseUp(fernTestValueMouseUp) - t.Run("GetSubtype", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var expected string - obj.Subtype = 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.GetSubtype(), "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("GetSubtype_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetScript", func(t *testing.T) { + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var expected *string - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") - }) + // Act + obj.SetFocus(fernTestValueFocus) - t.Run("GetScript_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - obj.Script = 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.GetScript(), "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("GetScript_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNext", func(t *testing.T) { + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var expected []any - obj.Next = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur - // Act & Assert - assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") - }) + // Act + obj.SetBlur(fernTestValueBlur) - t.Run("GetNext_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - obj.Next = 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.GetNext(), "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("GetNext_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNext() // 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { - t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen // Act - obj.SetType(fernTestValueType) + obj.SetPageOpen(fernTestValuePageOpen) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271337,14 +274170,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueSubtype string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose // Act - obj.SetSubtype(fernTestValueSubtype) + obj.SetPageClose(fernTestValuePageClose) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271368,14 +274201,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueScript *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible // Act - obj.SetScript(fernTestValueScript) + obj.SetPageVisible(fernTestValuePageVisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271399,14 +274232,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNext_MarksExplicit", func(t *testing.T) { + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - var fernTestValueNext []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible // Act - obj.SetNext(fernTestValueNext) + obj.SetPageInvisible(fernTestValuePageInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -271432,17 +274265,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat } -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -271450,7 +274283,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -271458,8 +274291,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -271467,12 +274300,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot obj.Root = expected // Act & Assert @@ -271482,7 +274315,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} obj.Root = nil // Act & Assert @@ -271491,7 +274324,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271504,7 +274337,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} var expected bool obj.Incomplete = expected @@ -271514,7 +274347,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271527,7 +274360,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} var expected int obj.WarningFlags = expected @@ -271537,7 +274370,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271550,8 +274383,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - var expected []DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem obj.Warnings = expected // Act & Assert @@ -271561,7 +274394,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} obj.Warnings = nil // Act & Assert @@ -271570,7 +274403,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271582,12 +274415,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot // Act obj.SetRoot(fernTestValueRoot) @@ -271617,7 +274450,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} var fernTestValueIncomplete bool // Act @@ -271648,7 +274481,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} var fernTestValueWarningFlags int // Act @@ -271679,8 +274512,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -271709,17 +274542,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr } -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -271727,7 +274560,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -271735,7 +274568,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -271744,12 +274577,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} - var expected DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType obj.Type = expected // Act & Assert @@ -271758,7 +274591,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271771,7 +274604,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var expected string obj.Subtype = expected @@ -271781,7 +274614,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271794,7 +274627,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var expected *string obj.Script = expected @@ -271805,7 +274638,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} obj.Script = nil // Act & Assert @@ -271814,7 +274647,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271827,7 +274660,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var expected []any obj.Next = expected @@ -271838,7 +274671,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} obj.Next = nil // Act & Assert @@ -271847,7 +274680,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -271859,12 +274692,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType // Act obj.SetType(fernTestValueType) @@ -271894,7 +274727,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var fernTestValueSubtype string // Act @@ -271925,7 +274758,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var fernTestValueScript *string // Act @@ -271956,7 +274789,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} var fernTestValueNext []any // Act @@ -271986,17 +274819,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystr } -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(t *testing.T) { t.Run("SetRoot", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot obj.SetRoot(fernTestValueRoot) assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIncomplete", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} var fernTestValueIncomplete bool obj.SetIncomplete(fernTestValueIncomplete) assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) @@ -272004,7 +274837,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin }) t.Run("SetWarningFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} var fernTestValueWarningFlags int obj.SetWarningFlags(fernTestValueWarningFlags) assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) @@ -272012,8 +274845,8 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin }) t.Run("SetWarnings", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem obj.SetWarnings(fernTestValueWarnings) assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) @@ -272021,12 +274854,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(t *testing.T) { t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - var expected *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot obj.Root = expected // Act & Assert @@ -272036,7 +274869,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} obj.Root = nil // Act & Assert @@ -272045,7 +274878,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272058,7 +274891,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} var expected bool obj.Incomplete = expected @@ -272068,7 +274901,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272081,7 +274914,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} var expected int obj.WarningFlags = expected @@ -272091,7 +274924,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272104,8 +274937,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - var expected []DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem obj.Warnings = expected // Act & Assert @@ -272115,7 +274948,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} obj.Warnings = nil // Act & Assert @@ -272124,7 +274957,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272136,12 +274969,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testin } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(t *testing.T) { t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot // Act obj.SetRoot(fernTestValueRoot) @@ -272171,7 +275004,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} var fernTestValueIncomplete bool // Act @@ -272202,7 +275035,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} var fernTestValueWarningFlags int // Act @@ -272233,8 +275066,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem // Act obj.SetWarnings(fernTestValueWarnings) @@ -272263,17 +275096,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida } -func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) t.Run("SetSubtype", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var fernTestValueSubtype string obj.SetSubtype(fernTestValueSubtype) assert.Equal(t, fernTestValueSubtype, obj.Subtype) @@ -272281,7 +275114,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te }) t.Run("SetScript", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var fernTestValueScript *string obj.SetScript(fernTestValueScript) assert.Equal(t, fernTestValueScript, obj.Script) @@ -272289,7 +275122,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te }) t.Run("SetNext", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var fernTestValueNext []any obj.SetNext(fernTestValueNext) assert.Equal(t, fernTestValueNext, obj.Next) @@ -272298,12 +275131,12 @@ func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} - var expected DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType obj.Type = expected // Act & Assert @@ -272312,7 +275145,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272325,7 +275158,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var expected string obj.Subtype = expected @@ -272335,7 +275168,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272348,7 +275181,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var expected *string obj.Script = expected @@ -272359,7 +275192,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} obj.Script = nil // Act & Assert @@ -272368,7 +275201,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272381,7 +275214,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var expected []any obj.Next = expected @@ -272392,7 +275225,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} obj.Next = nil // Act & Assert @@ -272401,7 +275234,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -272413,12 +275246,12 @@ func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *te } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} - var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType // Act obj.SetType(fernTestValueType) @@ -272448,7 +275281,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var fernTestValueSubtype string // Act @@ -272479,7 +275312,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var fernTestValueScript *string // Act @@ -272510,7 +275343,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} var fernTestValueNext []any // Act @@ -272540,220 +275373,196 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValida } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected string - obj.Kind = expected +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + 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("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - obj.None = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.None = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter // Should not 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.GetWarnings() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetRoot(fernTestValueRoot) - 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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueIncomplete bool // Act - obj.SetValues(fernTestValueValues) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -272777,54 +275586,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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - 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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem // Act - obj.SetValue(fernTestValueValue) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -272850,145 +275650,165 @@ 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected bool - obj.Required = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected bool - obj.NoExport = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected int - obj.Raw = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273012,14 +275832,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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueRequired bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueSubtype string // Act - obj.SetRequired(fernTestValueRequired) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273043,14 +275863,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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueNoExport bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueScript *string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273074,14 +275894,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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueRaw int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + var fernTestValueNext []any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273107,144 +275927,165 @@ 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + 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("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - var expected *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - var expected *DocFormsGet200ResponseFieldsItemUnknownRefFqn - obj.Fqn = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - obj.Fqn = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit // Should not 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.GetWarningFlags() // Should return zero value }) -} + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem + obj.Warnings = 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.GetWarnings(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} - var expected string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + obj.Warnings = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRefFqn + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273268,54 +276109,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueIncomplete bool - // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetIncomplete(fernTestValueIncomplete) - 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueWarningFlags int // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273339,222 +276171,198 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefObjectNumb // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetWarnings(fernTestValueWarnings) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry - // Should not 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.None = nil +} - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry - // Should not 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("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - obj.Scalar = expected + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.Scalar = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot // Should not 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.Array = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot // Should not 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.GetScript() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - obj.Values = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - var fernTestValueValues []string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType // Act - obj.SetValues(fernTestValueValues) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273578,54 +276386,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryArr // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - 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 *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 - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - var fernTestValueValue string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueSubtype string // Act - obj.SetValue(fernTestValueValue) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273649,85 +276417,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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueScript *string // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273751,14 +276448,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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + var fernTestValueNext []any // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273784,155 +276481,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsGet404Response{} - var fernTestValueCode DocFormsGet404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) 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) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) 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) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var expected DocFormsGet404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var expected DocFormsGet404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var fernTestValueName DocFormsGet404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273956,14 +276663,14 @@ func TestSettersMarkExplicitDocFormsGet404Response(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var fernTestValueCode DocFormsGet404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueIncomplete bool // Act - obj.SetCode(fernTestValueCode) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -273987,14 +276694,14 @@ func TestSettersMarkExplicitDocFormsGet404Response(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueWarningFlags int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274018,14 +276725,14 @@ func TestSettersMarkExplicitDocFormsGet404Response(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274051,184 +276758,165 @@ func TestSettersMarkExplicitDocFormsGet404Response(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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) -func TestGettersDocFormsImportData200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200Response{} - var expected *DocFormsImportData200ResponseMeta - obj.Meta = expected + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMeta_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot // Should not 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.GetType() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsImportData200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200Response{} - var fernTestValueMeta *DocFormsImportData200ResponseMeta - - // 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 - }) - -} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var expected string + obj.Subtype = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property 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("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + // Should not 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 }) -} - -func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var expected []*DocFormsImportData200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var expected *DocFormsImportData200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274252,14 +276940,76 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueSubtype string // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274285,134 +277035,165 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown // Should not panic - getters should handle nil 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.GetRoot() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274436,14 +277217,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueIncomplete bool // Act - obj.SetRevision(fernTestValueRevision) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274467,14 +277248,45 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueWarningFlags int // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274500,114 +277312,165 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} var expected string - obj.DocSessionID = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot // Should not panic - getters should handle nil 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.GetScript() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274631,14 +277494,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueSubtype string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274662,14 +277525,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueScript *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274693,146 +277556,198 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + var fernTestValueNext []any - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp // Should not 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.GetWarningFlags() // Should return zero value }) -} + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem + obj.Warnings = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) -} - -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + obj.Warnings = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274856,126 +277771,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemWe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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("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("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 := &DocFormsImportData200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") - }) - - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetPreviousDocVersion() // Should return zero value - }) - - t.Run("GetDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") - }) - - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetDocVersion() // Should return zero value - }) - - t.Run("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var expected []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem - 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) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - 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 *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.GetPages() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueIncomplete bool // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -274999,14 +277802,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueWarningFlags int // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275030,14 +277833,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem // Act - obj.SetPages(fernTestValuePages) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275063,93 +277866,165 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCache", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot // Should not panic - getters should handle nil 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.GetType() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var expected *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot // Should not 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.GetScript() // Should return zero value + }) + + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275173,14 +278048,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueSubtype string // Act - obj.SetCache(fernTestValueCache) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275204,85 +278079,14 @@ 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.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueScript *string - // 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) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - - // Act - obj.SetContentVersion(fernTestValueContentVersion) + // Act + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275306,14 +278110,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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + var fernTestValueNext []any // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275339,155 +278143,165 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsImportData400Response{} - var fernTestValueCode DocFormsImportData400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsImportData400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsImportData400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsImportData400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var expected DocFormsImportData400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var expected DocFormsImportData400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var fernTestValueName DocFormsImportData400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275511,14 +278325,14 @@ func TestSettersMarkExplicitDocFormsImportData400Response(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var fernTestValueCode DocFormsImportData400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueIncomplete bool // Act - obj.SetCode(fernTestValueCode) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275542,14 +278356,14 @@ func TestSettersMarkExplicitDocFormsImportData400Response(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueWarningFlags int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275573,14 +278387,14 @@ func TestSettersMarkExplicitDocFormsImportData400Response(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275606,155 +278420,165 @@ func TestSettersMarkExplicitDocFormsImportData400Response(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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsImportData404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var expected DocFormsImportData404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var expected DocFormsImportData404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var fernTestValueName DocFormsImportData404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275778,14 +278602,14 @@ func TestSettersMarkExplicitDocFormsImportData404Response(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var fernTestValueCode DocFormsImportData404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueSubtype string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275809,14 +278633,14 @@ func TestSettersMarkExplicitDocFormsImportData404Response(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueScript *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275840,14 +278664,14 @@ func TestSettersMarkExplicitDocFormsImportData404Response(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + var fernTestValueNext []any // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -275873,184 +278697,165 @@ func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsReset200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200Response{} - var expected *DocFormsReset200ResponseMeta - obj.Meta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible // Should not 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.GetRoot() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsReset200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200Response{} - var fernTestValueMeta *DocFormsReset200ResponseMeta - - // 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 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) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var expected bool + obj.Incomplete = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) -} - -func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMeta{} - var expected []*DocFormsReset200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var expected *DocFormsReset200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276074,14 +278879,76 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMeta(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueIncomplete bool // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276107,134 +278974,165 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { } -func TestSettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot // Should not panic - getters should handle nil 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.GetType() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276258,14 +279156,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsReset200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetRevision(fernTestValueRevision) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276289,14 +279187,45 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueScript *string // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276322,114 +279251,165 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *tes } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen // Should not panic - getters should handle nil 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.GetIncomplete() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} var expected int - obj.Generation = expected + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen // Should not 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.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276453,14 +279433,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevisio // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueIncomplete bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276484,14 +279464,45 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevisio // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueWarningFlags int // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276517,144 +279528,165 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevisio } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot // Should not 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 := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot // Should not 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.GetScript() // Should return zero value }) -} + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var expected []any + obj.Next = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) -} - -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + obj.Next = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276678,126 +279710,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemWeakAnn // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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("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 := &DocFormsReset200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") - }) - - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetPreviousDocVersion() // Should return zero value - }) - - t.Run("GetDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") - }) - - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetDocVersion() // Should return zero value - }) - - t.Run("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var expected []*DocFormsReset200ResponseMetaCacheDeltaPagesItem - 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) { - t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - 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 *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.GetPages() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueSubtype string // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276821,14 +279741,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueScript *string // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276852,14 +279772,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + var fernTestValueNext []any // Act - obj.SetPages(fernTestValuePages) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276885,93 +279805,165 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} var expected int - obj.PageObjectNumber = expected + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible // Should not panic - getters should handle nil 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.GetWarningFlags() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - var expected *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -276995,14 +279987,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueIncomplete bool // Act - obj.SetCache(fernTestValueCache) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277026,85 +280018,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 := &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.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueWarningFlags int // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277128,14 +280049,14 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItemCache // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277161,155 +280082,165 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItemCache } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsReset404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var expected DocFormsReset404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var expected DocFormsReset404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var fernTestValueName DocFormsReset404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277333,14 +280264,14 @@ func TestSettersMarkExplicitDocFormsReset404Response(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var fernTestValueCode DocFormsReset404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277364,14 +280295,14 @@ func TestSettersMarkExplicitDocFormsReset404Response(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueScript *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277395,14 +280326,14 @@ func TestSettersMarkExplicitDocFormsReset404Response(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + var fernTestValueNext []any // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277428,62 +280359,114 @@ func TestSettersMarkExplicitDocFormsReset404Response(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) +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) + 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) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsSetValue200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200Response{} - var expected *DocFormsSetValue200ResponseMeta - obj.Meta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + 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) { t.Parallel() // Arrange - obj := &DocFormsSetValue200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + var expected int + obj.G = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200Response + 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.GetMeta() // Should return zero value + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + 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 *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.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200Response{} - var fernTestValueMeta *DocFormsSetValue200ResponseMeta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + var fernTestValueR int // Act - obj.SetMeta(fernTestValueMeta) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277507,105 +280490,14 @@ func TestSettersMarkExplicitDocFormsSetValue200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 := &DocFormsSetValue200ResponseMeta{} - var expected []*DocFormsSetValue200ResponseMetaAffectedPagesItem - 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) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - obj.AffectedPages = nil - - // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") - }) - - 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("GetCacheDelta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var expected *DocFormsSetValue200ResponseMetaCacheDelta - obj.CacheDelta = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") - }) - - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - obj.CacheDelta = nil - - // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") - }) - - 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 - }) - -} - -func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + var fernTestValueG int // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277629,14 +280521,14 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(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("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsSetValue200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + var fernTestValueB int // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -277662,329 +280554,331 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { } -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) +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) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 *DocFormsSetValue200ResponseMetaAffectedPagesItem + 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.GetPageObjectNumber() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetHidden_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.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem + 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.GetRevision() // Should return zero value + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetNoZoom_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.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem + 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.GetWeakAnnotationState() // Should return zero value + _ = obj.GetNoRotate() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.NoView = 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.GetNoView(), "getter should return the property value") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - - // 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 + 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.GetNoView() // Should return zero value }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState - - // 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 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) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.ReadOnly = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - 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) + t.Run("GetReadOnly_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.GetReadOnly() // Should return zero value }) -} - -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + 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.GetDocSessionID() // Should return zero value + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + 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.GetPageObjectNumber() // Should return zero value + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + 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.GetGeneration() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueInvisible bool // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278008,14 +280902,14 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevi // 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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) @@ -278039,14 +280933,14 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValuePrint bool // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278070,146 +280964,200 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevi // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueNoZoom bool - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetNoZoom(fernTestValueNoZoom) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueNoRotate bool - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + // 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("GetUnknown_NilValue", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueNoView bool - // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") - }) + // Act + obj.SetNoView(fernTestValueNoView) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetUnknown() // 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("GetKnown", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueReadOnly bool - // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + // 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("GetKnown_NilValue", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueLocked bool - // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") - }) + // Act + obj.SetLocked(fernTestValueLocked) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetKnown() // 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 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) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueToggleNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") - }) + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetHasAnyWeakAnnotations() // 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 TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_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("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + var fernTestValueLockedContents bool // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278235,124 +281183,114 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemWeak } -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) +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) 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) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) 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) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var expected int - obj.PreviousDocVersion = expected + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + 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.GetPreviousDocVersion() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var expected int - obj.DocVersion = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + 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.GetDocVersion() // Should return zero value - }) - - t.Run("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var expected []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + 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.GetPages() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + var fernTestValueR int // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278376,14 +281314,14 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(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("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + var fernTestValueG int // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278407,14 +281345,14 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(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("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + var fernTestValueB int // Act - obj.SetPages(fernTestValuePages) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278440,30 +281378,163 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing } -func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + // Should not 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 := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} 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) + 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("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -278473,7 +281544,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -278483,46 +281554,69 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - var expected *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + // Should not 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 := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex // Should not 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.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -278550,14 +281644,45 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetCache(fernTestValueCache) + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278583,83 +281708,114 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t } -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) +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("SetAnnotationVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + 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 TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + 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.ContentVersion = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + 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.GetContentVersion() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var expected int - obj.AnnotationVersion = expected + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + 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.GetAnnotationVersion() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278683,14 +281839,14 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCa // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278714,157 +281870,116 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCa // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} + var fernTestValueGeneration int -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) - }) + // Act + obj.SetGeneration(fernTestValueGeneration) - 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) - }) + // Assert - 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("SetMessage", func(t *testing.T) { - obj := &DocFormsSetValue400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - 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("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) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) } -func TestGettersDocFormsSetValue400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue400Response{} - var expected DocFormsSetValue400ResponseName - 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 *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.GetName() // Should return zero value +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("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue400Response{} - var expected DocFormsSetValue400ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + 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) }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - 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.GetCode() // Should return zero value - }) +} - t.Run("GetMessage", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} + 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 *DocFormsSetValue400Response + 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.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue400Response{} - 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("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} + var expected string + 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 *DocFormsSetValue400Response + 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.GetDetails() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var fernTestValueName DocFormsSetValue400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} + 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) @@ -278888,14 +282003,14 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var fernTestValueCode DocFormsSetValue400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} + var fernTestValueNm string // Act - obj.SetCode(fernTestValueCode) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278919,14 +282034,85 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(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 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 := &DocFormsSetValue400Response{} - var fernTestValueMessage string + 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} + 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) @@ -278950,14 +282136,14 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(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("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -278983,186 +282169,114 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { } -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) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} - var fernTestValueCode DocFormsSetValue404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsSetValue404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue404Response{} - var expected DocFormsSetValue404ResponseName - 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 *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("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var expected DocFormsSetValue404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Should not 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.GetR() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Should not 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 := &DocFormsSetValue404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Should not 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.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsSetValue404Response{} - var fernTestValueName DocFormsSetValue404ResponseName - - // 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var fernTestValueCode DocFormsSetValue404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var fernTestValueR int // Act - obj.SetCode(fernTestValueCode) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279186,14 +282300,14 @@ func TestSettersMarkExplicitDocFormsSetValue404Response(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("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var fernTestValueG int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279217,14 +282331,14 @@ func TestSettersMarkExplicitDocFormsSetValue404Response(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("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + var fernTestValueB int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279250,155 +282364,145 @@ 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 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) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueCode DocHead404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + 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("SetMessage", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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("SetDetails", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + 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) }) } -func TestGettersDocHead404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected DocHead404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not 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.GetLeft() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected DocHead404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not 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.GetBottom() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not 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 := &DocHead404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not 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.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocHead404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueName DocHead404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueLeft float64 // Act - obj.SetName(fernTestValueName) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279422,14 +282526,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("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueCode DocHead404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueBottom float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279453,14 +282557,14 @@ 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) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueRight float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279484,14 +282588,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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueTop float64 // Act - obj.SetDetails(fernTestValueDetails) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279517,155 +282621,145 @@ func TestSettersMarkExplicitDocHead404Response(t *testing.T) { } -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) +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("SetCode", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueCode DocManifest404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + 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("SetMessage", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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("SetDetails", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + 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 TestGettersDocManifest404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var expected DocManifest404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + 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.GetName() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var expected DocManifest404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + 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.GetCode() // Should return zero value + _ = obj.GetTop() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + 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.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.GetRight() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + 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.GetDetails() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) } -func TestSettersMarkExplicitDocManifest404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueName DocManifest404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueLeft float64 // Act - obj.SetName(fernTestValueName) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279689,14 +282783,14 @@ func TestSettersMarkExplicitDocManifest404Response(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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueCode DocManifest404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueTop float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279720,14 +282814,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("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueRight float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279751,14 +282845,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("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueBottom float64 // Act - obj.SetDetails(fernTestValueDetails) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -279784,421 +282878,249 @@ 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) - }) - - 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 := &DocMetadataGet200Response{} - var expected *string - obj.Title = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTitle(), "getter should return the property value") - }) - - t.Run("GetTitle_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - obj.Title = nil - - // Act & Assert - assert.Nil(t, obj.GetTitle(), "getter should return nil when property is nil") - }) - - t.Run("GetTitle_NilReceiver", 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.GetTitle() // Should return zero value - }) - - t.Run("GetAuthor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - 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 := &DocMetadataGet200Response{} - 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 *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.GetAuthor() // 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") - }) - - t.Run("GetSubject_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetSubject() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetKeywords", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Keywords = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetKeywords(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetKeywords_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Keywords = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetKeywords(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetKeywords_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetKeywords() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetProducer", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Producer = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetProducer(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetProducer_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Producer = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetProducer(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetProducer_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetProducer() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetCreator", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Creator = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreator(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetCreator_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Creator = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetCreator(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetCreator_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetCreator() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - var expected *time.Time - obj.Created = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") +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) }) - t.Run("GetCreated_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - obj.Created = nil - - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + 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("GetCreated_NilReceiver", 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.GetCreated() // Should return zero value + 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("GetModified", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Modified = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetModified() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetTrapped", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected DocMetadataGet200ResponseTrapped - obj.Trapped = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetTrapped(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetTrapped_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetTrapped() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetCustom", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected map[string]string - obj.Custom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetCustom_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Custom = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetCustom(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetCustom_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + 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.GetCustom() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { - t.Run("SetTitle_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueTitle *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetTitle(fernTestValueTitle) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280222,14 +283144,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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + 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) @@ -280253,14 +283175,14 @@ 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) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision // Act - obj.SetSubject(fernTestValueSubject) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280284,14 +283206,116 @@ 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) { +} + +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 := &DocMetadataGet200Response{} - var fernTestValueKeywords *string + 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetKeywords(fernTestValueKeywords) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280315,14 +283339,14 @@ 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) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueProducer *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetProducer(fernTestValueProducer) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280346,14 +283370,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("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueCreator *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetCreator(fernTestValueCreator) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280377,14 +283401,85 @@ 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 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 := &DocMetadataGet200Response{} - var fernTestValueCreated *time.Time + 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + 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) @@ -280408,14 +283503,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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + 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) @@ -280439,14 +283534,85 @@ 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) { +} + +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 := &DocMetadataGet200Response{} - var fernTestValueTrapped DocMetadataGet200ResponseTrapped + 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetTrapped(fernTestValueTrapped) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280470,14 +283636,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("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueCustom map[string]string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetCustom(fernTestValueCustom) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280503,155 +283669,145 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { } -func TestSettersDocMetadataGet404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocMetadataGet404Response{} - var fernTestValueName DocMetadataGet404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +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("SetCode", func(t *testing.T) { - obj := &DocMetadataGet404Response{} - var fernTestValueCode DocMetadataGet404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + 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("SetMessage", func(t *testing.T) { - obj := &DocMetadataGet404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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("SetDetails", func(t *testing.T) { - obj := &DocMetadataGet404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + 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 TestGettersDocMetadataGet404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var expected DocMetadataGet404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + 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.GetName() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var expected DocMetadataGet404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + 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.GetCode() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + 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.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + 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.GetDetails() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var fernTestValueName DocMetadataGet404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueLeft float64 // Act - obj.SetName(fernTestValueName) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280675,14 +283831,14 @@ func TestSettersMarkExplicitDocMetadataGet404Response(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("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var fernTestValueCode DocMetadataGet404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueBottom float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280706,14 +283862,14 @@ func TestSettersMarkExplicitDocMetadataGet404Response(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("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueRight float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280737,14 +283893,14 @@ func TestSettersMarkExplicitDocMetadataGet404Response(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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueTop float64 // Act - obj.SetDetails(fernTestValueDetails) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -280770,931 +283926,914 @@ func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { } -func TestSettersDocPagesDelete200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesDelete200Response{} - var fernTestValueMeta *DocPagesDelete200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) +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("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) -func TestGettersDocPagesDelete200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200Response{} - var expected *DocPagesDelete200ResponseMeta - obj.Meta = expected + 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) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + 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("GetMeta_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200Response{} - obj.Meta = nil + 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) + }) - // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + 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("GetMeta_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete200Response - // Should not 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("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("SetContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersMarkExplicitDocPagesDelete200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200Response{} - var fernTestValueMeta *DocPagesDelete200ResponseMeta + 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) + }) - // Act - obj.SetMeta(fernTestValueMeta) + 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) + }) - // Assert - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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 := &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) + }) -func TestSettersDocPagesDelete200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + 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("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + 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 TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var expected []*DocPagesDelete200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Ref = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMeta + 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.GetAffectedPages() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var expected *DocPagesDelete200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber_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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMeta + 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.GetCacheDelta() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesDelete200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality + obj.IdentityQuality = 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.GetIdentityQuality(), "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("GetIdentityQuality_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.GetIdentityQuality() // Should return zero value }) - t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Nm = nil -func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetNm_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.GetNm() // Should return zero value }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + obj.Flags = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Flags = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem + 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.GetFlags() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Rect = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem + 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.GetRect() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Contents = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem + 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.GetWeakAnnotationState() // Should return zero value + _ = obj.GetContents() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - 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 *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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Subject = 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.GetSubject(), "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("GetSubject_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.GetSubject() // Should return zero value }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState - - // 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") - } + 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("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Author = nil -func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetAuthor_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.GetAuthor() // Should return zero value }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *time.Time + obj.Created = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Created = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + 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.GetCreated() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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 *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.GetModified() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + obj.BlendMode = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + 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.GetBlendMode() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + 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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.InReplyTo = nil - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // 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 *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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + 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("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.ReplyType = nil - // Act - obj.SetGeneration(fernTestValueGeneration) + // 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 *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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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 TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetUserID() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.GroupID = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.GroupID = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetUnknown() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.CreatedBy = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetKnown() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) -} + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.UpdatedBy = expected -func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) -} - -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.UpdatedBy = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Actions = nil -func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) - assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) + t.Run("GetActions_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.GetActions() // Should return zero value }) - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) - }) + 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") + }) -func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Color = nil // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + 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.GetPreviousDocVersion() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + 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.GetDocVersion() // Should return zero value + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetQuadPoints", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var expected []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + obj.QuadPoints = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.QuadPoints = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + 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.GetPages() // Should return zero value + _ = obj.GetQuadPoints() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -281718,14 +284857,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValuePageObjectNumber int // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -281749,14 +284888,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueIndex int // Act - obj.SetPages(fernTestValuePages) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -281780,95 +284919,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - 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 := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - 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 *DocPagesDelete200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil 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 := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - 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 := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - 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 *DocPagesDelete200ResponseMetaCacheDeltaPagesItem - // Should not 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 TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - 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) @@ -281892,14 +284950,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueNm *string // Act - obj.SetCache(fernTestValueCache) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -281923,85 +284981,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282025,14 +285012,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItemCach // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282056,157 +285043,14 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItemCach // 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.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueName DocPagesDelete400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueContents *string // Act - obj.SetName(fernTestValueName) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282230,14 +285074,14 @@ func TestSettersMarkExplicitDocPagesDelete400Response(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("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueCode DocPagesDelete400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueSubject *string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282261,14 +285105,14 @@ func TestSettersMarkExplicitDocPagesDelete400Response(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("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueAuthor *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282292,14 +285136,14 @@ func TestSettersMarkExplicitDocPagesDelete400Response(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("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueCreated *time.Time // Act - obj.SetDetails(fernTestValueDetails) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282323,157 +285167,14 @@ func TestSettersMarkExplicitDocPagesDelete400Response(t *testing.T) { // 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.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueName DocPagesDelete404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueModified *time.Time // Act - obj.SetName(fernTestValueName) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282497,14 +285198,14 @@ func TestSettersMarkExplicitDocPagesDelete404Response(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("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueCode DocPagesDelete404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode // Act - obj.SetCode(fernTestValueCode) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282528,14 +285229,14 @@ func TestSettersMarkExplicitDocPagesDelete404Response(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("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo // Act - obj.SetMessage(fernTestValueMessage) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282559,14 +285260,14 @@ func TestSettersMarkExplicitDocPagesDelete404Response(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("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType // Act - obj.SetDetails(fernTestValueDetails) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282590,157 +285291,14 @@ func TestSettersMarkExplicitDocPagesDelete404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesExtract400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - 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 := &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 := &DocPagesExtract400Response{} - 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 := &DocPagesExtract400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesExtract400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesExtract400Response{} - var expected DocPagesExtract400ResponseName - 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 *DocPagesExtract400Response - // Should not 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 := &DocPagesExtract400Response{} - var expected DocPagesExtract400ResponseCode - 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 *DocPagesExtract400Response - // Should not 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 := &DocPagesExtract400Response{} - 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 *DocPagesExtract400Response - // Should not 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 := &DocPagesExtract400Response{} - 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 := &DocPagesExtract400Response{} - 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 *DocPagesExtract400Response - // Should not 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 TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var fernTestValueName DocPagesExtract400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueUserID *string // Act - obj.SetName(fernTestValueName) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282764,14 +285322,14 @@ func TestSettersMarkExplicitDocPagesExtract400Response(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("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var fernTestValueCode DocPagesExtract400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueGroupID *string // Act - obj.SetCode(fernTestValueCode) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282795,14 +285353,14 @@ func TestSettersMarkExplicitDocPagesExtract400Response(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("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueCreatedBy *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282826,14 +285384,14 @@ func TestSettersMarkExplicitDocPagesExtract400Response(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("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueUpdatedBy *string // Act - obj.SetDetails(fernTestValueDetails) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -282857,157 +285415,14 @@ func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesExtract404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - 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 := &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 := &DocPagesExtract404Response{} - 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 := &DocPagesExtract404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesExtract404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesExtract404Response{} - var expected DocPagesExtract404ResponseName - 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 *DocPagesExtract404Response - // Should not 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 := &DocPagesExtract404Response{} - var expected DocPagesExtract404ResponseCode - 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 *DocPagesExtract404Response - // Should not 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 := &DocPagesExtract404Response{} - 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 *DocPagesExtract404Response - // Should not 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 := &DocPagesExtract404Response{} - 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 := &DocPagesExtract404Response{} - 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 *DocPagesExtract404Response - // Should not 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 TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var fernTestValueName DocPagesExtract404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Act - obj.SetName(fernTestValueName) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283031,14 +285446,14 @@ func TestSettersMarkExplicitDocPagesExtract404Response(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("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var fernTestValueCode DocPagesExtract404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor // Act - obj.SetCode(fernTestValueCode) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283062,14 +285477,14 @@ func TestSettersMarkExplicitDocPagesExtract404Response(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("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueOpacity float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283093,14 +285508,14 @@ func TestSettersMarkExplicitDocPagesExtract404Response(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("SetQuadPoints_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetQuadPoints(fernTestValueQuadPoints) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283126,368 +285541,472 @@ func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { } -func TestSettersDocPagesFlatten200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesFlatten200Response{} - var fernTestValueMeta *DocPagesFlatten200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesFlatten200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200Response{} - var expected *DocPagesFlatten200ResponseMeta - obj.Meta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + obj.Activate = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("GetActivate_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.Activate = nil // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetActivate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Should not 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.GetActivate() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesFlatten200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetCursorEnter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200Response{} - var fernTestValueMeta *DocPagesFlatten200ResponseMeta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + obj.CursorEnter = expected - // Act - obj.SetMeta(fernTestValueMeta) + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "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("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.CursorEnter = 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.GetCursorEnter(), "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("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value }) -} + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + obj.CursorExit = expected -func TestSettersDocPagesFlatten200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") }) - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) - assert.NotNil(t, obj.explicitFields) + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") }) -} + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) -func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetMouseDown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var expected []*DocPagesFlatten200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + obj.MouseDown = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetMouseDown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.MouseDown = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Should not 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.GetMouseDown() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetMouseUp", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var expected *DocPagesFlatten200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + obj.MouseUp = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetMouseUp_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.MouseUp = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Should not 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.GetMouseUp() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesFlatten200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Run("GetFocus", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + obj.Focus = expected - // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "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("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.Focus = 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.GetFocus(), "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("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value }) - t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("GetBlur", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + obj.Blur = expected - // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "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("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.Blur = 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.GetBlur(), "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("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value }) -} + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + obj.PageOpen = expected -func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value }) -} + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + obj.PageClose = expected -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.PageClose = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Should not panic - getters should handle nil 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.GetPageClose() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetPageVisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + obj.PageVisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetPageVisible_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.PageVisible = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Should not 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.GetPageVisible() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetPageInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + obj.PageInvisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + obj.PageInvisible = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions // Should not 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.GetPageInvisible() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetActivate(fernTestValueActivate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283511,14 +286030,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(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("SetCursorEnter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter // Act - obj.SetRevision(fernTestValueRevision) + obj.SetCursorEnter(fernTestValueCursorEnter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283542,14 +286061,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(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("SetCursorExit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetCursorExit(fernTestValueCursorExit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283573,116 +286092,45 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - // Should not 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("SetMouseDown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil 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.SetMouseDown(fernTestValueMouseDown) - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetMouseUp(fernTestValueMouseUp) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283706,14 +286154,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevis // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFocus(fernTestValueFocus) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283737,14 +286185,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevis // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetBlur(fernTestValueBlur) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283768,146 +286216,107 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevis // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetPageOpen(fernTestValuePageOpen) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState - // Should not 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("GetUnknown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = 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.GetUnknown(), "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("GetUnknown_NilValue", func(t *testing.T) { + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose - // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") - }) + // Act + obj.SetPageClose(fernTestValuePageClose) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState - // Should not 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 - }) + // Assert - 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", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = 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.GetKnown(), "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("GetKnown_NilValue", func(t *testing.T) { + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState - // Should not 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 TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible -} + // Act + obj.SetPageVisible(fernTestValuePageVisible) -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = 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.GetHasAnyWeakAnnotations(), "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("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetPageInvisible(fernTestValuePageInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -283933,124 +286342,165 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemWeakA } -func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) - assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} var expected int - obj.DocVersion = expected + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var expected []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284074,14 +286524,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueIncomplete bool // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284105,14 +286555,45 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueWarningFlags int // Act - obj.SetPages(fernTestValuePages) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284138,93 +286619,165 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. } -func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot // Should not panic - getters should handle nil 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.GetType() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot // Should not 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.GetScript() // Should return zero value + }) + + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284248,14 +286801,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueSubtype string // Act - obj.SetCache(fernTestValueCache) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284279,85 +286832,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - // Should not 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueScript *string // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284381,14 +286863,14 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCac // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + var fernTestValueNext []any // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284414,155 +286896,165 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCac } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) 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) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) 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) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesFlatten400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var expected DocPagesFlatten400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var expected DocPagesFlatten400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var fernTestValueName DocPagesFlatten400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284586,14 +287078,14 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var fernTestValueCode DocPagesFlatten400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueIncomplete bool // Act - obj.SetCode(fernTestValueCode) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284617,14 +287109,14 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueWarningFlags int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284648,14 +287140,14 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284681,155 +287173,165 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { } -func TestSettersDocPagesFlatten404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} - var fernTestValueName DocPagesFlatten404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} - var fernTestValueCode DocPagesFlatten404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesFlatten404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var expected DocPagesFlatten404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var expected DocPagesFlatten404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var fernTestValueName DocPagesFlatten404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284853,14 +287355,14 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var fernTestValueCode DocPagesFlatten404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueSubtype string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284884,14 +287386,14 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueScript *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284915,14 +287417,14 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + var fernTestValueNext []any // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -284948,184 +287450,165 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { } -func TestSettersDocPagesInsert200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesInsert200Response{} - var fernTestValueMeta *DocPagesInsert200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsert200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200Response{} - var expected *DocPagesInsert200ResponseMeta - obj.Meta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter // Should not 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.GetRoot() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesInsert200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200Response{} - var fernTestValueMeta *DocPagesInsert200ResponseMeta - - // 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 TestSettersDocPagesInsert200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var expected bool + obj.Incomplete = expected - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) -} - -func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var expected []*DocPagesInsert200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var expected *DocPagesInsert200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285149,14 +287632,76 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueIncomplete bool // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285182,134 +287727,165 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot // Should not panic - getters should handle nil 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.GetType() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285333,14 +287909,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueSubtype string // Act - obj.SetRevision(fernTestValueRevision) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285364,14 +287940,45 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueScript *string // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285397,114 +288004,165 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *te } -func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit // Should not panic - getters should handle nil 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.GetIncomplete() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} var expected int - obj.Generation = expected + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit // Should not 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.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285528,14 +288186,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevisi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueIncomplete bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285559,14 +288217,45 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevisi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueWarningFlags int // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285592,144 +288281,165 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevisi } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot // Should not 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot // Should not 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.GetScript() // Should return zero value }) -} + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var expected []any + obj.Next = expected -func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) -} - -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + obj.Next = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285753,126 +288463,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemWeakAn // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - 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 := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") - }) - - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta - // Should not 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 - }) - - t.Run("GetDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") - }) - - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta - // Should not 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("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var expected []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem - 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) { - t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - 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 *DocPagesInsert200ResponseMetaCacheDelta - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueSubtype string // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285896,14 +288494,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueScript *string // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285927,14 +288525,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + var fernTestValueNext []any // Act - obj.SetPages(fernTestValuePages) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -285960,93 +288558,165 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T } -func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus // Should not panic - getters should handle nil 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + _ = obj.GetRoot() // Should return zero value }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286070,14 +288740,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueIncomplete bool // Act - obj.SetCache(fernTestValueCache) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286101,85 +288771,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - // Should not 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - // Should not 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 TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueWarningFlags int // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286203,14 +288802,14 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCach // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286236,155 +288835,165 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCach } -func TestSettersDocPagesInsert400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsert400Response{} - var fernTestValueName DocPagesInsert400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsert400Response{} - var fernTestValueCode DocPagesInsert400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsert400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsert400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsert400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var expected DocPagesInsert400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var expected DocPagesInsert400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var fernTestValueName DocPagesInsert400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286408,14 +289017,14 @@ func TestSettersMarkExplicitDocPagesInsert400Response(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var fernTestValueCode DocPagesInsert400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueSubtype string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286439,14 +289048,14 @@ func TestSettersMarkExplicitDocPagesInsert400Response(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueScript *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286470,14 +289079,14 @@ func TestSettersMarkExplicitDocPagesInsert400Response(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + var fernTestValueNext []any // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286503,155 +289112,165 @@ func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { } -func TestSettersDocPagesInsert404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsert404Response{} - var fernTestValueName DocPagesInsert404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsert404Response{} - var fernTestValueCode DocPagesInsert404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsert404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsert404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsert404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var expected DocPagesInsert404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var expected DocPagesInsert404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var fernTestValueName DocPagesInsert404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286675,14 +289294,14 @@ func TestSettersMarkExplicitDocPagesInsert404Response(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var fernTestValueCode DocPagesInsert404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueIncomplete bool // Act - obj.SetCode(fernTestValueCode) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286706,14 +289325,14 @@ func TestSettersMarkExplicitDocPagesInsert404Response(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueWarningFlags int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286737,14 +289356,14 @@ func TestSettersMarkExplicitDocPagesInsert404Response(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286770,184 +289389,165 @@ func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + 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("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMeta_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot // Should not 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.GetType() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesInsertBlank200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200Response{} - var fernTestValueMeta *DocPagesInsertBlank200ResponseMeta - - // 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 - }) - -} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var expected string + obj.Subtype = expected -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) + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - 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) + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + // Should not 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 }) -} - -func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var expected []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var expected *DocPagesInsertBlank200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -286971,14 +289571,76 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueSubtype string // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287004,134 +289666,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) 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) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp // Should not panic - getters should handle nil 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.GetRoot() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287155,14 +289848,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueIncomplete bool // Act - obj.SetRevision(fernTestValueRevision) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287186,14 +289879,45 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueWarningFlags int // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287219,114 +289943,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem( } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} var expected string - obj.DocSessionID = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot // Should not panic - getters should handle nil 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.GetScript() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287350,14 +290125,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueSubtype string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287381,14 +290156,45 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueScript *string // Act - obj.SetGeneration(fernTestValueGeneration) + 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287414,144 +290220,258 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemR } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose // Should not 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.GetWarnings() // Should return zero 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) - }) +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot -} + // Act + obj.SetRoot(fernTestValueRoot) -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", 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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueIncomplete bool - // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() - 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.GetHasAnyWeakAnnotations() // Should return zero value - }) + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueWarningFlags int -} + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287577,124 +290497,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemW } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var expected []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot // Should not 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.GetScript() // Should return zero value + }) + + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287718,14 +290679,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueSubtype string // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287749,14 +290710,45 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueScript *string // Act - obj.SetPages(fernTestValuePages) + 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287782,93 +290774,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) 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) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} var expected int - obj.PageObjectNumber = expected + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible // Should not panic - getters should handle nil 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.GetWarningFlags() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287892,14 +290956,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueIncomplete bool // Act - obj.SetCache(fernTestValueCache) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -287923,85 +290987,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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 := &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.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueWarningFlags int // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288025,14 +291018,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288058,155 +291051,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte } -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) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) 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) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) 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) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) 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) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsertBlank400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var expected DocPagesInsertBlank400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var expected DocPagesInsertBlank400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var fernTestValueName DocPagesInsertBlank400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288230,14 +291233,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var fernTestValueCode DocPagesInsertBlank400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288261,14 +291264,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueScript *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288292,14 +291295,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + var fernTestValueNext []any // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288325,155 +291328,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { } -func TestSettersDocPagesInsertBlank404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} - var fernTestValueName DocPagesInsertBlank404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} - var fernTestValueCode DocPagesInsertBlank404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesInsertBlank404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var expected DocPagesInsertBlank404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var expected DocPagesInsertBlank404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen // Should not 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.GetIncomplete() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var fernTestValueName DocPagesInsertBlank404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot // Act - obj.SetName(fernTestValueName) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288497,14 +291510,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var fernTestValueCode DocPagesInsertBlank404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueIncomplete bool // Act - obj.SetCode(fernTestValueCode) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288528,14 +291541,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(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("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueWarningFlags int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288559,14 +291572,14 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288592,184 +291605,165 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { } -func TestSettersDocPagesMove200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesMove200Response{} - var fernTestValueMeta *DocPagesMove200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) -func TestGettersDocPagesMove200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200Response{} - var expected *DocPagesMove200ResponseMeta - obj.Meta = expected + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMeta_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType + obj.Type = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot // Should not 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.GetType() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesMove200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200Response{} - var fernTestValueMeta *DocPagesMove200ResponseMeta - - // 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 - }) - -} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var expected string + obj.Subtype = expected -func TestSettersDocPagesMove200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) - assert.NotNil(t, obj.explicitFields) + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + // Should not 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 }) -} - -func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var expected []*DocPagesMove200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var expected *DocPagesMove200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMeta + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288793,14 +291787,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMeta(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueSubtype string // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288824,136 +291818,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - 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 := &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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueScript *string - // 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 *DocPagesMove200ResponseMetaAffectedPagesItem - // Should not panic - getters should handle nil 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemRevision - 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} - 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 *DocPagesMove200ResponseMetaAffectedPagesItem - // Should not 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState - 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} - 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 *DocPagesMove200ResponseMetaAffectedPagesItem - // Should not 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 TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -288977,14 +291849,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesMove200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + var fernTestValueNext []any // Act - obj.SetRevision(fernTestValueRevision) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289008,147 +291880,167 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *test // 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState - - // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) }) -} - -func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible // Should not panic - getters should handle nil 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.GetIncomplete() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} var expected int - obj.Generation = expected + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible // Should not 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.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289172,14 +292064,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueIncomplete bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289203,14 +292095,45 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueWarningFlags int // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289236,144 +292159,165 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision } -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot // Should not 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 := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + _ = obj.GetType() // Should return zero value }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + obj.Script = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot // Should not 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.GetScript() // Should return zero value }) -} + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var expected []any + obj.Next = expected -func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) -} - -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + obj.Next = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289397,126 +292341,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemWeakAnno // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} - 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 := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") - }) - - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta - // Should not 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 - }) - - t.Run("GetDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") - }) - - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta - // Should not 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("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var expected []*DocPagesMove200ResponseMetaCacheDeltaPagesItem - 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) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - 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 *DocPagesMove200ResponseMetaCacheDelta - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289540,14 +292372,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueScript *string // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289571,14 +292403,14 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + var fernTestValueNext []any // Act - obj.SetPages(fernTestValuePages) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -289604,93 +292436,114 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) } -func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - 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("SetCache", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + 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 TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(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 := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesMove200ResponseMetaCacheDeltaPagesItem + 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("GetCache", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + 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 + }) + + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItem + 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.GetCache() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(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 := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - 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) @@ -289714,14 +292567,45 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueG int // Act - obj.SetCache(fernTestValueCache) + 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) @@ -289747,288 +292631,331 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *te } -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) +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("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + 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 TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + 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.GetContentVersion() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + 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.GetAnnotationVersion() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetPrint", 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") + 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("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetNoZoom", 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.NoZoom = 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.GetNoZoom(), "getter should return the property value") }) -} - -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("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("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("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.NoRotate = expected - 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) + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - 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) + 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 }) -} - -func TestGettersDocPagesMove400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var expected DocPagesMove400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove400Response + 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.GetName() // Should return zero value + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var expected DocPagesMove400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove400Response + 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.GetCode() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove400Response + 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.GetMessage() // Should return zero value + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetToggleNoView_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.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove400Response + 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.GetDetails() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesMove400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueName DocPagesMove400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueInvisible bool // Act - obj.SetName(fernTestValueName) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290052,14 +292979,14 @@ func TestSettersMarkExplicitDocPagesMove400Response(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("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueCode DocPagesMove400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueHidden bool // Act - obj.SetCode(fernTestValueCode) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290083,14 +293010,14 @@ func TestSettersMarkExplicitDocPagesMove400Response(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("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValuePrint bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290114,14 +293041,14 @@ func TestSettersMarkExplicitDocPagesMove400Response(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("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoZoom bool // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290145,157 +293072,14 @@ func TestSettersMarkExplicitDocPagesMove400Response(t *testing.T) { // 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.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueName DocPagesMove404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoRotate bool // Act - obj.SetName(fernTestValueName) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290319,14 +293103,14 @@ func TestSettersMarkExplicitDocPagesMove404Response(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("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueCode DocPagesMove404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoView bool // Act - obj.SetCode(fernTestValueCode) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290350,14 +293134,14 @@ func TestSettersMarkExplicitDocPagesMove404Response(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("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueReadOnly bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290381,14 +293165,14 @@ func TestSettersMarkExplicitDocPagesMove404Response(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("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueLocked bool // Act - obj.SetDetails(fernTestValueDetails) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290412,64 +293196,45 @@ func TestSettersMarkExplicitDocPagesMove404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -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) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesRotate200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200Response{} - var expected *DocPagesRotate200ResponseMeta - obj.Meta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueToggleNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") - }) + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) - t.Run("GetMeta_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate200Response{} - obj.Meta = 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.GetMeta(), "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("GetMeta_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200Response - // Should not 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 + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocPagesRotate200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200Response{} - var fernTestValueMeta *DocPagesRotate200ResponseMeta + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueLockedContents bool // Act - obj.SetMeta(fernTestValueMeta) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290495,191 +293260,163 @@ func TestSettersMarkExplicitDocPagesRotate200Response(t *testing.T) { } -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) - }) +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected string + obj.Kind = expected - 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) + // 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 *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.GetKind() // Should return zero value + }) -func TestGettersDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var expected []*DocPagesRotate200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMeta + 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.GetAffectedPages() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var expected *DocPagesRotate200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMeta + 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.GetCacheDelta() // Should return zero value + _ = obj.GetNm() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesRotate200ResponseMetaCacheDelta - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + 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 *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.GetIndex() // Should return zero value }) } -func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + 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("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + 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 TestGettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -290689,7 +293426,7 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -290699,79 +293436,69 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItem + 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.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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItem + 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.GetWeakAnnotationState() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -290799,14 +293526,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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + 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) @@ -290830,14 +293557,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("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -290863,9 +293590,9 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *te } -func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -290873,7 +293600,7 @@ func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -290881,7 +293608,7 @@ func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -290890,11 +293617,11 @@ func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin } -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -290904,7 +293631,7 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -290917,7 +293644,7 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -290927,7 +293654,7 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -290940,7 +293667,7 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -290950,7 +293677,7 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -290962,11 +293689,11 @@ func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testin } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -290997,7 +293724,7 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevisi t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -291028,7 +293755,7 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevisi t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -291058,144 +293785,247 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevisi } -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +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 := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetKind() // Should return zero value - }) - - t.Run("GetUnknown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetUnknown() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "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("GetKnown_NilValue", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + 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.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetKnown() // Should return zero value - }) - -} - -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) + _ = obj.GetPageObjectNumber() // Should return zero value }) -} - -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + 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) @@ -291221,124 +294051,185 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemWeakAn } -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) +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("SetDocVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + 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("SetPages", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) + 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 TestGettersDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + obj.P1 = expected // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetP1_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + // 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.GetPreviousDocVersion() // Should return zero value + _ = obj.GetP1() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetP2", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + obj.P2 = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetP2_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + // 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.GetDocVersion() // Should return zero value + _ = obj.GetP2() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetP3", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + obj.P3 = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetP3_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + obj.P3 = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetP3_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + 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.GetPages() // Should return zero value + _ = 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 TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetP1(fernTestValueP1) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291362,14 +294253,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("SetP2_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetP2(fernTestValueP2) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291393,14 +294284,45 @@ 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("SetP3_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 // Act - obj.SetPages(fernTestValuePages) + 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) @@ -291426,93 +294348,83 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T } -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) +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("SetCache", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + 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 TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + 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 *DocPagesRotate200ResponseMetaCacheDeltaPagesItem + 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.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetCache", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + _ = obj.GetX() // Should return zero value }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItem + 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.GetCache() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + 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) @@ -291536,14 +294448,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("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var fernTestValueY float64 // Act - obj.SetCache(fernTestValueCache) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291569,83 +294481,83 @@ 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 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("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + 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 TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + 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.GetContentVersion() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + 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.GetAnnotationVersion() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var fernTestValueX float64 // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291669,14 +294581,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItemCach // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var fernTestValueY float64 // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291702,155 +294614,83 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItemCach } -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) - }) - - 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("SetMessage", func(t *testing.T) { - obj := &DocPagesRotate400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) +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("SetDetails", func(t *testing.T) { - obj := &DocPagesRotate400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + 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 TestGettersDocPagesRotate400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var expected DocPagesRotate400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate400Response - // Should not 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 := &DocPagesRotate400Response{} - var expected DocPagesRotate400ResponseCode - 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 *DocPagesRotate400Response - // Should not 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 := &DocPagesRotate400Response{} - 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.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response + 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.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate400Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetX() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response + 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.GetDetails() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueName DocPagesRotate400ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var fernTestValueX float64 // Act - obj.SetName(fernTestValueName) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291874,14 +294714,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("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueCode DocPagesRotate400ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291905,14 +294745,85 @@ 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) { +} + +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 := &DocPagesRotate400Response{} - var fernTestValueMessage string + 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.SetMessage(fernTestValueMessage) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291936,14 +294847,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("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetDetails(fernTestValueDetails) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -291969,155 +294880,145 @@ func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { } -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) +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("SetCode", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueCode DocPagesRotate404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + 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("SetMessage", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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("SetDetails", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + 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 TestGettersDocPagesRotate404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var expected DocPagesRotate404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate404Response + 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.GetName() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var expected DocPagesRotate404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate404Response + 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.GetCode() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate404Response + 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.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate404Response + 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.GetDetails() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueName DocPagesRotate404ResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueLeft float64 // Act - obj.SetName(fernTestValueName) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -292141,14 +295042,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("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueCode DocPagesRotate404ResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueBottom float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -292172,14 +295073,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("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueRight float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -292203,14 +295104,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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueTop float64 // Act - obj.SetDetails(fernTestValueDetails) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -292236,272 +295137,163 @@ func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { } -func TestSettersDocRedactionsApply200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocRedactionsApply200Response{} - var fernTestValueMeta *DocRedactionsApply200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocRedactionsApply200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200Response{} - var expected *DocRedactionsApply200ResponseMeta - 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) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200Response{} - obj.Meta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200Response + 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.GetMeta() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocRedactionsApply200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200Response{} - var fernTestValueMeta *DocRedactionsApply200ResponseMeta - - // 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 TestSettersDocRedactionsApply200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMeta{} - var fernTestValueAffectedPages []*DocRedactionsApply200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMeta{} - var fernTestValueCacheDelta *DocRedactionsApply200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetKind() // Should return zero value }) -} - -func TestGettersDocRedactionsApply200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - var expected []*DocRedactionsApply200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMeta + 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.GetAffectedPages() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - var expected *DocRedactionsApply200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMeta + 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.GetCacheDelta() // Should return zero value + _ = obj.GetNm() // Should return zero value }) -} - -func TestSettersMarkExplicitDocRedactionsApply200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - var fernTestValueAffectedPages []*DocRedactionsApply200ResponseMetaAffectedPagesItem - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - var fernTestValueCacheDelta *DocRedactionsApply200ResponseMetaCacheDelta - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + 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 *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 TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + 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("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + 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 TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} var expected int obj.PageObjectNumber = expected @@ -292511,7 +295303,7 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -292521,79 +295313,69 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision - 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItem + 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 + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItem + 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.GetWeakAnnotationState() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -292621,14 +295403,14 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItem(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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + 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) @@ -292652,14 +295434,14 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItem(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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -292685,9 +295467,9 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItem(t } -func TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -292695,7 +295477,7 @@ func TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -292703,7 +295485,7 @@ func TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -292712,11 +295494,11 @@ func TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te } -func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -292726,7 +295508,7 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -292739,7 +295521,7 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -292749,7 +295531,7 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -292762,7 +295544,7 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var expected int obj.Generation = expected @@ -292772,7 +295554,7 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -292784,11 +295566,11 @@ func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *te } -func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -292819,7 +295601,7 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemRe t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -292850,7 +295632,7 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemRe t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} var fernTestValueGeneration int // Act @@ -292880,144 +295662,114 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemRe } -func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") +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) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState - // Should not 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("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("GetUnknown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - 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) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetUnknown() // Should return zero value - }) - - t.Run("GetKnown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + 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.GetKnown() // Should return zero value - }) - -} - -func TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetNm() // Should return zero value }) } -func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - // Should not 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 - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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 TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var fernTestValueNm string // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -293043,124 +295795,83 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemWe } -func TestSettersDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - 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 := &DocRedactionsApply200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) +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("SetPages", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) + 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 TestGettersDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} var expected int - obj.PreviousDocVersion = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDelta + 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.GetPreviousDocVersion() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} var expected int - obj.DocVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") - }) - - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDelta - // Should not 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("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - var expected []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - 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) { - t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - obj.Pages = nil + obj.AnnotObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDelta + 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.GetPages() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -293184,14 +295895,14 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDelta(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("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -293215,63 +295926,273 @@ func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDelta(t *testi // 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 := &DocRedactionsApply200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - - // 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") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +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) }) -} - -func TestSettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) + 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) + }) + + 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) + }) + + 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("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("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("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("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("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("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("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("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("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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + 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 TestGettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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 *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.GetRef() // Should return zero value + }) + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} var expected int obj.PageObjectNumber = expected @@ -293281,7 +296202,7 @@ func TestGettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing. t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -293291,922 +296212,815 @@ func TestGettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing. _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} - var expected *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetIndex_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 + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + 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.GetCache() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) -} - -func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Nm = nil - // Act - obj.SetCache(fernTestValueCache) + // 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 *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 + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + 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("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Flags = nil -func TestSettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) + 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.GetFlags() // Should return zero value }) -} + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + obj.Rect = expected -func TestGettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Rect = nil // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + 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.GetContentVersion() // Should return zero value + _ = obj.GetRect() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + // 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.GetAnnotationVersion() // Should return zero value + _ = obj.GetContents() // Should return zero value }) -} - -func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - 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 := &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("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Subject = nil - // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + // 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 *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 + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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 := &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("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Author = nil -func TestSettersDocRedactionsApply400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocRedactionsApply400Response{} - var fernTestValueName DocRedactionsApply400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocRedactionsApply400Response{} - var fernTestValueCode DocRedactionsApply400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + 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("SetMessage", func(t *testing.T) { - obj := &DocRedactionsApply400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *time.Time + obj.Created = expected - t.Run("SetDetails", func(t *testing.T) { - obj := &DocRedactionsApply400Response{} - 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.GetCreated(), "getter should return the property value") }) -} - -func TestGettersDocRedactionsApply400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - var expected DocRedactionsApply400ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Created = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply400Response + 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.GetName() // Should return zero value + _ = obj.GetCreated() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - var expected DocRedactionsApply400ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply400Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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 *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.GetCode() // Should return zero value + _ = obj.GetModified() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode + obj.BlendMode = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply400Response + 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.GetMessage() // Should return zero value + _ = obj.GetBlendMode() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + obj.InReplyTo = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.InReplyTo = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply400Response + 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.GetDetails() // Should return zero value + _ = obj.GetInReplyTo() // Should return zero value }) -} - -func TestSettersMarkExplicitDocRedactionsApply400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - var fernTestValueName DocRedactionsApply400ResponseName - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType + 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("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - var fernTestValueCode DocRedactionsApply400ResponseCode - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.ReplyType = 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.GetReplyType(), "getter should return nil when property is nil") }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply400Response{} - 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 + 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.GetReplyType() // Should return zero value }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply400Response{} - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.UserID = nil -func TestSettersDocRedactionsApply404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocRedactionsApply404Response{} - var fernTestValueName DocRedactionsApply404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocRedactionsApply404Response{} - var fernTestValueCode DocRedactionsApply404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + t.Run("GetUserID_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.GetUserID() // Should return zero value }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocRedactionsApply404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.GroupID = expected - t.Run("SetDetails", func(t *testing.T) { - obj := &DocRedactionsApply404Response{} - 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.GetGroupID(), "getter should return the property value") }) -} - -func TestGettersDocRedactionsApply404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - var expected DocRedactionsApply404ResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.GroupID = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply404Response + 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.GetName() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - var expected DocRedactionsApply404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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 *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.GetCode() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply404Response + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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 *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.GetMessage() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Actions = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply404Response + 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.GetDetails() // Should return zero value + _ = obj.GetActions() // Should return zero value }) -} - -func TestSettersMarkExplicitDocRedactionsApply404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - var fernTestValueName DocRedactionsApply404ResponseName - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + 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("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - var fernTestValueCode DocRedactionsApply404ResponseCode - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Color = 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.GetColor(), "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("GetColor_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.GetColor() // Should return zero value }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - 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 := &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("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRedactionsApply404Response{} - 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") + 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("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + obj.BorderStyle = expected -func TestSettersDocRenderResponse(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocRenderResponse{} - var fernTestValueName DocRenderResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocRenderResponse{} - var fernTestValueCode DocRenderResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + 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 }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocRenderResponse{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected []float64 + obj.DashArray = expected - t.Run("SetDetails", func(t *testing.T) { - obj := &DocRenderResponse{} - 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.GetDashArray(), "getter should return the property value") }) -} - -func TestGettersDocRenderResponse(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var expected DocRenderResponseName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.DashArray = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRenderResponse + 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.GetName() // Should return zero value + _ = obj.GetDashArray() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var expected DocRenderResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent + obj.Intent = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocRenderResponse + // 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.GetCode() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetInkList", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + obj.InkList = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInkList(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetInkList_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocRenderResponse + // 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.GetMessage() // Should return zero value + _ = obj.GetInkList() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Rotation = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocRenderResponse + 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.GetDetails() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) } -func TestSettersMarkExplicitDocRenderResponse(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var fernTestValueName DocRenderResponseName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef // Act - obj.SetName(fernTestValueName) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294230,14 +297044,14 @@ func TestSettersMarkExplicitDocRenderResponse(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("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var fernTestValueCode DocRenderResponseCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValuePageObjectNumber int // Act - obj.SetCode(fernTestValueCode) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294261,14 +297075,14 @@ func TestSettersMarkExplicitDocRenderResponse(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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIndex int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294292,14 +297106,14 @@ func TestSettersMarkExplicitDocRenderResponse(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("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocRenderResponse{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality // Act - obj.SetDetails(fernTestValueDetails) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294323,331 +297137,14 @@ func TestSettersMarkExplicitDocRenderResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocText404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocText404Response{} - var fernTestValueName DocText404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocText404Response{} - var fernTestValueCode DocText404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocText404Response{} - 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 := &DocText404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocText404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocText404Response{} - var expected DocText404ResponseName - 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 *DocText404Response - // Should not 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 := &DocText404Response{} - var expected DocText404ResponseCode - 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 *DocText404Response - // Should not 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 := &DocText404Response{} - 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 *DocText404Response - // Should not 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 := &DocText404Response{} - 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 := &DocText404Response{} - 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 *DocText404Response - // Should not 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 TestSettersMarkExplicitDocText404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocText404Response{} - var fernTestValueName DocText404ResponseName - - // 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 := &DocText404Response{} - var fernTestValueCode DocText404ResponseCode - - // 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 := &DocText404Response{} - 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 := &DocText404Response{} - 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 TestSettersDocumentsCommit400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsCommit400Response{} - var fernTestValueError *DocumentsCommit400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsCommit400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit400Response{} - var expected *DocumentsCommit400ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit400Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsCommit400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsCommit400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit400Response{} - var fernTestValueError *DocumentsCommit400ResponseError + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueNm *string // Act - obj.SetError(fernTestValueError) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294671,85 +297168,14 @@ func TestSettersMarkExplicitDocumentsCommit400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsCommit400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsCommit400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsCommit400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsCommit400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit400ResponseError{} - var expected string - 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 *DocumentsCommit400ResponseError - // Should not 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 := &DocumentsCommit400ResponseError{} - 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 *DocumentsCommit400ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsCommit400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsCommit400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Act - obj.SetCode(fernTestValueCode) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294773,14 +297199,14 @@ func TestSettersMarkExplicitDocumentsCommit400ResponseError(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("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsCommit400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect // Act - obj.SetMessage(fernTestValueMessage) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294804,64 +297230,14 @@ func TestSettersMarkExplicitDocumentsCommit400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsCommit404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsCommit404Response{} - var fernTestValueError *DocumentsCommit404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsCommit404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit404Response{} - var expected *DocumentsCommit404ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit404Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsCommit404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsCommit404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsCommit404Response{} - var fernTestValueError *DocumentsCommit404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueContents *string // Act - obj.SetError(fernTestValueError) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294885,85 +297261,14 @@ func TestSettersMarkExplicitDocumentsCommit404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsCommit404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsCommit404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsCommit404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsCommit404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsCommit404ResponseError{} - var expected string - 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 *DocumentsCommit404ResponseError - // Should not 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 := &DocumentsCommit404ResponseError{} - 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 *DocumentsCommit404ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsCommit404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsCommit404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueSubject *string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -294987,14 +297292,14 @@ func TestSettersMarkExplicitDocumentsCommit404ResponseError(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("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsCommit404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueAuthor *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295018,64 +297323,14 @@ func TestSettersMarkExplicitDocumentsCommit404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDelete403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsDelete403Response{} - var fernTestValueError *DocumentsDelete403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDelete403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDelete403Response{} - var expected *DocumentsDelete403ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDelete403Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsDelete403Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsDelete403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDelete403Response{} - var fernTestValueError *DocumentsDelete403ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueCreated *time.Time // Act - obj.SetError(fernTestValueError) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295099,85 +297354,14 @@ func TestSettersMarkExplicitDocumentsDelete403Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDelete403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsDelete403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsDelete403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDelete403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDelete403ResponseError{} - var expected string - 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 *DocumentsDelete403ResponseError - // Should not 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 := &DocumentsDelete403ResponseError{} - 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 *DocumentsDelete403ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsDelete403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDelete403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueModified *time.Time // Act - obj.SetCode(fernTestValueCode) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295201,14 +297385,14 @@ func TestSettersMarkExplicitDocumentsDelete403ResponseError(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("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDelete403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode // Act - obj.SetMessage(fernTestValueMessage) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295232,64 +297416,14 @@ func TestSettersMarkExplicitDocumentsDelete403ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDelete404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsDelete404Response{} - var fernTestValueError *DocumentsDelete404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDelete404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDelete404Response{} - var expected *DocumentsDelete404ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDelete404Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsDelete404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsDelete404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDelete404Response{} - var fernTestValueError *DocumentsDelete404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo // Act - obj.SetError(fernTestValueError) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295313,85 +297447,14 @@ func TestSettersMarkExplicitDocumentsDelete404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDelete404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsDelete404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsDelete404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDelete404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDelete404ResponseError{} - var expected string - 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 *DocumentsDelete404ResponseError - // Should not 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 := &DocumentsDelete404ResponseError{} - 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 *DocumentsDelete404ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsDelete404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDelete404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType // Act - obj.SetCode(fernTestValueCode) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295415,14 +297478,14 @@ func TestSettersMarkExplicitDocumentsDelete404ResponseError(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("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDelete404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueUserID *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295446,64 +297509,14 @@ func TestSettersMarkExplicitDocumentsDelete404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDownload403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsDownload403Response{} - var fernTestValueError *DocumentsDownload403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDownload403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDownload403Response{} - var expected *DocumentsDownload403ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDownload403Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsDownload403Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsDownload403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDownload403Response{} - var fernTestValueError *DocumentsDownload403ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueGroupID *string // Act - obj.SetError(fernTestValueError) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295527,85 +297540,14 @@ func TestSettersMarkExplicitDocumentsDownload403Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDownload403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsDownload403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsDownload403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDownload403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDownload403ResponseError{} - var expected string - 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 *DocumentsDownload403ResponseError - // Should not 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 := &DocumentsDownload403ResponseError{} - 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 *DocumentsDownload403ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsDownload403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDownload403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueCreatedBy *string // Act - obj.SetCode(fernTestValueCode) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295629,14 +297571,14 @@ func TestSettersMarkExplicitDocumentsDownload403ResponseError(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("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDownload403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueUpdatedBy *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295660,64 +297602,14 @@ func TestSettersMarkExplicitDocumentsDownload403ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDownload404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsDownload404Response{} - var fernTestValueError *DocumentsDownload404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDownload404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDownload404Response{} - var expected *DocumentsDownload404ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDownload404Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsDownload404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsDownload404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDownload404Response{} - var fernTestValueError *DocumentsDownload404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Act - obj.SetError(fernTestValueError) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295741,85 +297633,14 @@ func TestSettersMarkExplicitDocumentsDownload404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsDownload404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsDownload404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsDownload404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsDownload404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsDownload404ResponseError{} - var expected string - 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 *DocumentsDownload404ResponseError - // Should not 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 := &DocumentsDownload404ResponseError{} - 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 *DocumentsDownload404ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsDownload404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDownload404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor // Act - obj.SetCode(fernTestValueCode) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295843,14 +297664,14 @@ func TestSettersMarkExplicitDocumentsDownload404ResponseError(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("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsDownload404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueOpacity float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295874,64 +297695,14 @@ func TestSettersMarkExplicitDocumentsDownload404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsGet403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsGet403Response{} - var fernTestValueError *DocumentsGet403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsGet403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsGet403Response{} - var expected *DocumentsGet403ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsGet403Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsGet403Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsGet403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsGet403Response{} - var fernTestValueError *DocumentsGet403ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueStrokeWidth float64 // Act - obj.SetError(fernTestValueError) + obj.SetStrokeWidth(fernTestValueStrokeWidth) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -295955,85 +297726,14 @@ func TestSettersMarkExplicitDocumentsGet403Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsGet403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsGet403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsGet403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsGet403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsGet403ResponseError{} - var expected string - 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 *DocumentsGet403ResponseError - // Should not 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 := &DocumentsGet403ResponseError{} - 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 *DocumentsGet403ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsGet403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsGet403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle // Act - obj.SetCode(fernTestValueCode) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296057,14 +297757,14 @@ func TestSettersMarkExplicitDocumentsGet403ResponseError(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("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsGet403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueDashArray []float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296088,64 +297788,14 @@ func TestSettersMarkExplicitDocumentsGet403ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsGet404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsGet404Response{} - var fernTestValueError *DocumentsGet404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsGet404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsGet404Response{} - var expected *DocumentsGet404ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsGet404Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsGet404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsGet404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsGet404Response{} - var fernTestValueError *DocumentsGet404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent // Act - obj.SetError(fernTestValueError) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296169,85 +297819,14 @@ func TestSettersMarkExplicitDocumentsGet404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsGet404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsGet404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsGet404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsGet404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsGet404ResponseError{} - var expected string - 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 *DocumentsGet404ResponseError - // Should not 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 := &DocumentsGet404ResponseError{} - 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 *DocumentsGet404ResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitDocumentsGet404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetInkList_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsGet404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueInkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem // Act - obj.SetCode(fernTestValueCode) + obj.SetInkList(fernTestValueInkList) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296271,14 +297850,14 @@ func TestSettersMarkExplicitDocumentsGet404ResponseError(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("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsGet404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRotation *float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296304,647 +297883,472 @@ func TestSettersMarkExplicitDocumentsGet404ResponseError(t *testing.T) { } -func TestSettersDocumentsImportFrom202Response(t *testing.T) { - t.Run("SetTag", func(t *testing.T) { - obj := &DocumentsImportFrom202Response{} - var fernTestValueTag DocumentsImportFrom202ResponseTag - obj.SetTag(fernTestValueTag) - assert.Equal(t, fernTestValueTag, obj.Tag) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDocument", func(t *testing.T) { - obj := &DocumentsImportFrom202Response{} - var fernTestValueDocument *DocumentsImportFrom202ResponseDocument - obj.SetDocument(fernTestValueDocument) - assert.Equal(t, fernTestValueDocument, obj.Document) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) assert.NotNil(t, obj.explicitFields) }) -} - -func TestGettersDocumentsImportFrom202Response(t *testing.T) { - t.Run("GetTag", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202Response{} - var expected DocumentsImportFrom202ResponseTag - obj.Tag = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTag(), "getter should return the property value") - }) - - t.Run("GetTag_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom202Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTag() // Should return zero value - }) - - t.Run("GetDocument", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202Response{} - var expected *DocumentsImportFrom202ResponseDocument - obj.Document = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocument(), "getter should return the property value") - }) - - t.Run("GetDocument_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202Response{} - obj.Document = nil - - // Act & Assert - assert.Nil(t, obj.GetDocument(), "getter should return nil when property is nil") - }) - - t.Run("GetDocument_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom202Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocument() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsImportFrom202Response(t *testing.T) { - t.Run("SetTag_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202Response{} - var fernTestValueTag DocumentsImportFrom202ResponseTag - - // Act - obj.SetTag(fernTestValueTag) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetDocument_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202Response{} - var fernTestValueDocument *DocumentsImportFrom202ResponseDocument - - // Act - obj.SetDocument(fernTestValueDocument) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocumentsImportFrom202ResponseDocument(t *testing.T) { - t.Run("SetID", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueID string - obj.SetID(fernTestValueID) - assert.Equal(t, fernTestValueID, obj.ID) + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTenantID", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueTenantID string - obj.SetTenantID(fernTestValueTenantID) - assert.Equal(t, fernTestValueTenantID, obj.TenantID) + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetState", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueState DocumentsImportFrom202ResponseDocumentState - obj.SetState(fernTestValueState) - assert.Equal(t, fernTestValueState, obj.State) + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBaseSha", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueBaseSha *string - obj.SetBaseSha(fernTestValueBaseSha) - assert.Equal(t, fernTestValueBaseSha, obj.BaseSha) + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStorageSizeBytes", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueStorageSizeBytes *float64 - obj.SetStorageSizeBytes(fernTestValueStorageSizeBytes) - assert.Equal(t, fernTestValueStorageSizeBytes, obj.StorageSizeBytes) + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMetadata", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueMetadata map[string]any - obj.SetMetadata(fernTestValueMetadata) - assert.Equal(t, fernTestValueMetadata, obj.Metadata) + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdempotencyKey", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueIdempotencyKey *string - obj.SetIdempotencyKey(fernTestValueIdempotencyKey) - assert.Equal(t, fernTestValueIdempotencyKey, obj.IdempotencyKey) + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFailureReason", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueFailureReason *string - obj.SetFailureReason(fernTestValueFailureReason) - assert.Equal(t, fernTestValueFailureReason, obj.FailureReason) + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetThumbnailState", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueThumbnailState *DocumentsImportFrom202ResponseDocumentThumbnailState - obj.SetThumbnailState(fernTestValueThumbnailState) - assert.Equal(t, fernTestValueThumbnailState, obj.ThumbnailState) + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetThumbnailURL", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueThumbnailURL *string - obj.SetThumbnailURL(fernTestValueThumbnailURL) - assert.Equal(t, fernTestValueThumbnailURL, obj.ThumbnailURL) + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreatedAt", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueCreatedAt float64 - obj.SetCreatedAt(fernTestValueCreatedAt) - assert.Equal(t, fernTestValueCreatedAt, obj.CreatedAt) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetUpdatedAt", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueUpdatedAt float64 - obj.SetUpdatedAt(fernTestValueUpdatedAt) - assert.Equal(t, fernTestValueUpdatedAt, obj.UpdatedAt) - assert.NotNil(t, obj.explicitFields) - }) +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + obj.Activate = expected - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") }) -} - -func TestGettersDocumentsImportFrom202ResponseDocument(t *testing.T) { - t.Run("GetID", func(t *testing.T) { + t.Run("GetActivate_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected string - obj.ID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.Activate = nil // Act & Assert - assert.Equal(t, expected, obj.GetID(), "getter should return the property value") + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") }) - t.Run("GetID_NilReceiver", func(t *testing.T) { + t.Run("GetActivate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetID() // Should return zero value + _ = obj.GetActivate() // Should return zero value }) - t.Run("GetTenantID", func(t *testing.T) { + t.Run("GetCursorEnter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected string - obj.TenantID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + obj.CursorEnter = expected // Act & Assert - assert.Equal(t, expected, obj.GetTenantID(), "getter should return the property value") - }) - - t.Run("GetTenantID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTenantID() // Should return zero value + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") }) - t.Run("GetState", func(t *testing.T) { + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected DocumentsImportFrom202ResponseDocumentState - obj.State = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.CursorEnter = nil // Act & Assert - assert.Equal(t, expected, obj.GetState(), "getter should return the property value") + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") }) - t.Run("GetState_NilReceiver", func(t *testing.T) { + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not 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.GetCursorEnter() // Should return zero value }) - t.Run("GetBaseSha", func(t *testing.T) { + t.Run("GetCursorExit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *string - obj.BaseSha = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + obj.CursorExit = expected // Act & Assert - assert.Equal(t, expected, obj.GetBaseSha(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") }) - t.Run("GetBaseSha_NilValue", func(t *testing.T) { + t.Run("GetCursorExit_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.BaseSha = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.CursorExit = nil // Act & Assert - assert.Nil(t, obj.GetBaseSha(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") }) - t.Run("GetBaseSha_NilReceiver", func(t *testing.T) { + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBaseSha() // Should return zero value + _ = obj.GetCursorExit() // Should return zero value }) - t.Run("GetStorageSizeBytes", func(t *testing.T) { + t.Run("GetMouseDown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *float64 - obj.StorageSizeBytes = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + obj.MouseDown = expected // Act & Assert - assert.Equal(t, expected, obj.GetStorageSizeBytes(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") }) - t.Run("GetStorageSizeBytes_NilValue", func(t *testing.T) { + t.Run("GetMouseDown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.StorageSizeBytes = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.MouseDown = nil // Act & Assert - assert.Nil(t, obj.GetStorageSizeBytes(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") }) - t.Run("GetStorageSizeBytes_NilReceiver", func(t *testing.T) { + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStorageSizeBytes() // Should return zero value + _ = obj.GetMouseDown() // Should return zero value }) - t.Run("GetMetadata", func(t *testing.T) { + t.Run("GetMouseUp", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected map[string]any - obj.Metadata = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + obj.MouseUp = expected // Act & Assert - assert.Equal(t, expected, obj.GetMetadata(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") }) - t.Run("GetMetadata_NilValue", func(t *testing.T) { + t.Run("GetMouseUp_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.Metadata = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.MouseUp = nil // Act & Assert - assert.Nil(t, obj.GetMetadata(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") }) - t.Run("GetMetadata_NilReceiver", func(t *testing.T) { + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMetadata() // Should return zero value + _ = obj.GetMouseUp() // Should return zero value }) - t.Run("GetIdempotencyKey", func(t *testing.T) { + t.Run("GetFocus", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *string - obj.IdempotencyKey = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + obj.Focus = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdempotencyKey(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") }) - t.Run("GetIdempotencyKey_NilValue", func(t *testing.T) { + t.Run("GetFocus_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.IdempotencyKey = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.Focus = nil // Act & Assert - assert.Nil(t, obj.GetIdempotencyKey(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") }) - t.Run("GetIdempotencyKey_NilReceiver", func(t *testing.T) { + t.Run("GetFocus_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdempotencyKey() // Should return zero value + _ = obj.GetFocus() // Should return zero value }) - t.Run("GetFailureReason", func(t *testing.T) { + t.Run("GetBlur", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *string - obj.FailureReason = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + obj.Blur = expected // Act & Assert - assert.Equal(t, expected, obj.GetFailureReason(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") }) - t.Run("GetFailureReason_NilValue", func(t *testing.T) { + t.Run("GetBlur_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.FailureReason = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.Blur = nil // Act & Assert - assert.Nil(t, obj.GetFailureReason(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") }) - t.Run("GetFailureReason_NilReceiver", func(t *testing.T) { + t.Run("GetBlur_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFailureReason() // Should return zero value + _ = obj.GetBlur() // Should return zero value }) - t.Run("GetThumbnailState", func(t *testing.T) { + t.Run("GetPageOpen", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *DocumentsImportFrom202ResponseDocumentThumbnailState - obj.ThumbnailState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + obj.PageOpen = expected // Act & Assert - assert.Equal(t, expected, obj.GetThumbnailState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") }) - t.Run("GetThumbnailState_NilValue", func(t *testing.T) { + t.Run("GetPageOpen_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.ThumbnailState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.PageOpen = nil // Act & Assert - assert.Nil(t, obj.GetThumbnailState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") }) - t.Run("GetThumbnailState_NilReceiver", func(t *testing.T) { + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetThumbnailState() // Should return zero value + _ = obj.GetPageOpen() // Should return zero value }) - t.Run("GetThumbnailURL", func(t *testing.T) { + t.Run("GetPageClose", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *string - obj.ThumbnailURL = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + obj.PageClose = expected // Act & Assert - assert.Equal(t, expected, obj.GetThumbnailURL(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") }) - t.Run("GetThumbnailURL_NilValue", func(t *testing.T) { + t.Run("GetPageClose_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.ThumbnailURL = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.PageClose = nil // Act & Assert - assert.Nil(t, obj.GetThumbnailURL(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") }) - t.Run("GetThumbnailURL_NilReceiver", func(t *testing.T) { + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetThumbnailURL() // Should return zero value + _ = obj.GetPageClose() // Should return zero value }) - t.Run("GetCreatedAt", func(t *testing.T) { + t.Run("GetPageVisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected float64 - obj.CreatedAt = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + obj.PageVisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedAt(), "getter should return the property value") - }) - - t.Run("GetCreatedAt_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedAt() // Should return zero value + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") }) - t.Run("GetUpdatedAt", func(t *testing.T) { + t.Run("GetPageVisible_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected float64 - obj.UpdatedAt = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.PageVisible = nil // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedAt(), "getter should return the property value") + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") }) - t.Run("GetUpdatedAt_NilReceiver", func(t *testing.T) { + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedAt() // Should return zero value + _ = obj.GetPageVisible() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { + t.Run("GetPageInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + obj.PageInvisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - obj.CreatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + obj.PageInvisible = nil // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions // Should not 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.GetPageInvisible() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) { - t.Run("SetID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate // Act - obj.SetID(fernTestValueID) + obj.SetActivate(fernTestValueActivate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296968,14 +298372,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTenantID_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueTenantID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter // Act - obj.SetTenantID(fernTestValueTenantID) + obj.SetCursorEnter(fernTestValueCursorEnter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -296999,14 +298403,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetState_MarksExplicit", func(t *testing.T) { + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueState DocumentsImportFrom202ResponseDocumentState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit // Act - obj.SetState(fernTestValueState) + obj.SetCursorExit(fernTestValueCursorExit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297030,14 +298434,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBaseSha_MarksExplicit", func(t *testing.T) { + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueBaseSha *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown // Act - obj.SetBaseSha(fernTestValueBaseSha) + obj.SetMouseDown(fernTestValueMouseDown) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297061,14 +298465,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStorageSizeBytes_MarksExplicit", func(t *testing.T) { + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueStorageSizeBytes *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp // Act - obj.SetStorageSizeBytes(fernTestValueStorageSizeBytes) + obj.SetMouseUp(fernTestValueMouseUp) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297092,14 +298496,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMetadata_MarksExplicit", func(t *testing.T) { + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueMetadata map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus // Act - obj.SetMetadata(fernTestValueMetadata) + obj.SetFocus(fernTestValueFocus) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297123,14 +298527,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdempotencyKey_MarksExplicit", func(t *testing.T) { + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueIdempotencyKey *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur // Act - obj.SetIdempotencyKey(fernTestValueIdempotencyKey) + obj.SetBlur(fernTestValueBlur) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297154,14 +298558,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFailureReason_MarksExplicit", func(t *testing.T) { + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueFailureReason *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen // Act - obj.SetFailureReason(fernTestValueFailureReason) + obj.SetPageOpen(fernTestValuePageOpen) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297185,14 +298589,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetThumbnailState_MarksExplicit", func(t *testing.T) { + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueThumbnailState *DocumentsImportFrom202ResponseDocumentThumbnailState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose // Act - obj.SetThumbnailState(fernTestValueThumbnailState) + obj.SetPageClose(fernTestValuePageClose) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297216,14 +298620,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetThumbnailURL_MarksExplicit", func(t *testing.T) { + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueThumbnailURL *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible // Act - obj.SetThumbnailURL(fernTestValueThumbnailURL) + obj.SetPageVisible(fernTestValuePageVisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297247,14 +298651,14 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedAt_MarksExplicit", func(t *testing.T) { + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueCreatedAt float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible // Act - obj.SetCreatedAt(fernTestValueCreatedAt) + obj.SetPageInvisible(fernTestValuePageInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297278,228 +298682,167 @@ func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedAt_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - var fernTestValueUpdatedAt float64 - - // Act - obj.SetUpdatedAt(fernTestValueUpdatedAt) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - 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("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocumentsImportFrom400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsImportFrom400Response{} - var fernTestValueError *DocumentsImportFrom400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsImportFrom400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400Response{} - var expected *DocumentsImportFrom400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetError() // Should return zero value + _ = obj.GetRoot() // Should return zero value }) -} - -func TestSettersMarkExplicitDocumentsImportFrom400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400Response{} - var fernTestValueError *DocumentsImportFrom400ResponseError - - // Act - obj.SetError(fernTestValueError) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var expected bool + obj.Incomplete = expected -func TestSettersDocumentsImportFrom400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsImportFrom400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsImportFrom400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value }) -} - -func TestGettersDocumentsImportFrom400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom400ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsImportFrom400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297523,14 +298866,14 @@ func TestSettersMarkExplicitDocumentsImportFrom400ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297554,64 +298897,45 @@ func TestSettersMarkExplicitDocumentsImportFrom400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsImportFrom403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsImportFrom403Response{} - var fernTestValueError *DocumentsImportFrom403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsImportFrom403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom403Response{} - var expected *DocumentsImportFrom403ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom403Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom403Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitDocumentsImportFrom403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom403Response{} - var fernTestValueError *DocumentsImportFrom403ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297637,83 +298961,165 @@ func TestSettersMarkExplicitDocumentsImportFrom403Response(t *testing.T) { } -func TestSettersDocumentsImportFrom403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsImportFrom403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsImportFrom403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsImportFrom403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom403ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom403ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom403ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom403ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsImportFrom403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297737,14 +299143,14 @@ func TestSettersMarkExplicitDocumentsImportFrom403ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297768,64 +299174,45 @@ func TestSettersMarkExplicitDocumentsImportFrom403ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsImportFrom502Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsImportFrom502Response{} - var fernTestValueError *DocumentsImportFrom502ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsImportFrom502Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom502Response{} - var expected *DocumentsImportFrom502ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsImportFrom502Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom502Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitDocumentsImportFrom502Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom502Response{} - var fernTestValueError *DocumentsImportFrom502ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297851,83 +299238,165 @@ func TestSettersMarkExplicitDocumentsImportFrom502Response(t *testing.T) { } -func TestSettersDocumentsImportFrom502ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsImportFrom502ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsImportFrom502ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsImportFrom502ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom502ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom502ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom502ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom502ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsImportFrom502ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom502ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297951,14 +299420,14 @@ func TestSettersMarkExplicitDocumentsImportFrom502ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsImportFrom502ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -297982,64 +299451,45 @@ func TestSettersMarkExplicitDocumentsImportFrom502ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsInit400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsInit400Response{} - var fernTestValueError *DocumentsInit400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsInit400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsInit400Response{} - var expected *DocumentsInit400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsInit400Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsInit400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitDocumentsInit400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsInit400Response{} - var fernTestValueError *DocumentsInit400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298065,83 +299515,165 @@ func TestSettersMarkExplicitDocumentsInit400Response(t *testing.T) { } -func TestSettersDocumentsInit400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsInit400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsInit400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsInit400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsInit400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsInit400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsInit400ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsInit400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsInit400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsInit400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298165,14 +299697,14 @@ func TestSettersMarkExplicitDocumentsInit400ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsInit400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298196,64 +299728,45 @@ func TestSettersMarkExplicitDocumentsInit400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsList400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsList400Response{} - var fernTestValueError *DocumentsList400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsList400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsList400Response{} - var expected *DocumentsList400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsList400Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsList400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitDocumentsList400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsList400Response{} - var fernTestValueError *DocumentsList400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298279,83 +299792,165 @@ func TestSettersMarkExplicitDocumentsList400Response(t *testing.T) { } -func TestSettersDocumentsList400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsList400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsList400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsList400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsList400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocumentsList400ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsList400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsList400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsList400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsList400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298379,14 +299974,14 @@ func TestSettersMarkExplicitDocumentsList400ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsList400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298410,64 +300005,45 @@ func TestSettersMarkExplicitDocumentsList400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsThumbnailResponse(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsThumbnailResponse{} - var fernTestValueError *DocumentsThumbnailResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsThumbnailResponse(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponse{} - var expected *DocumentsThumbnailResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsThumbnailResponse{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsThumbnailResponse - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitDocumentsThumbnailResponse(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponse{} - var fernTestValueError *DocumentsThumbnailResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298493,114 +300069,165 @@ func TestSettersMarkExplicitDocumentsThumbnailResponse(t *testing.T) { } -func TestSettersDocumentsThumbnailResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsThumbnailResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsThumbnailResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetState", func(t *testing.T) { - obj := &DocumentsThumbnailResponseError{} - var fernTestValueState string - obj.SetState(fernTestValueState) - assert.Equal(t, fernTestValueState, obj.State) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsThumbnailResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsThumbnailResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsThumbnailResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetState", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponseError{} - var expected string - obj.State = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetState_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocumentsThumbnailResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot // Should not 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.GetScript() // Should return zero value + }) + + t.Run("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsThumbnailResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298624,14 +300251,14 @@ func TestSettersMarkExplicitDocumentsThumbnailResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298655,14 +300282,14 @@ func TestSettersMarkExplicitDocumentsThumbnailResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetState_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsThumbnailResponseError{} - var fernTestValueState string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueScript *string // Act - obj.SetState(fernTestValueState) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298686,64 +300313,14 @@ func TestSettersMarkExplicitDocumentsThumbnailResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsUploadProxy400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsUploadProxy400Response{} - var fernTestValueError *DocumentsUploadProxy400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsUploadProxy400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsUploadProxy400Response{} - var expected *DocumentsUploadProxy400ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsUploadProxy400Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsUploadProxy400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocumentsUploadProxy400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy400Response{} - var fernTestValueError *DocumentsUploadProxy400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298769,195 +300346,165 @@ func TestSettersMarkExplicitDocumentsUploadProxy400Response(t *testing.T) { } -func TestSettersDocumentsUploadProxy400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsUploadProxy400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsUploadProxy400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocumentsUploadProxy400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy400ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit // Should not 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.GetIncomplete() // Should return zero value }) -} - -func TestSettersMarkExplicitDocumentsUploadProxy400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy400ResponseError{} - var fernTestValueCode string - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var expected int + obj.WarningFlags = 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.GetWarningFlags(), "getter should return the property value") }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsUploadProxy400ResponseError{} - 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 - }) - -} - -func TestSettersDocumentsUploadProxy409Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &DocumentsUploadProxy409Response{} - var fernTestValueError *DocumentsUploadProxy409ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value }) -} - -func TestGettersDocumentsUploadProxy409Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy409Response{} - var expected *DocumentsUploadProxy409ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy409Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + obj.Warnings = nil // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy409Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetError() // Should return zero value + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitDocumentsUploadProxy409Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy409Response{} - var fernTestValueError *DocumentsUploadProxy409ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot // Act - obj.SetError(fernTestValueError) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -298981,85 +300528,45 @@ func TestSettersMarkExplicitDocumentsUploadProxy409Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocumentsUploadProxy409ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &DocumentsUploadProxy409ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocumentsUploadProxy409ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocumentsUploadProxy409ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy409ResponseError{} - var expected string - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueIncomplete bool - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsUploadProxy409ResponseError - // Should not 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.SetIncomplete(fernTestValueIncomplete) - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocumentsUploadProxy409ResponseError{} - 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 *DocumentsUploadProxy409ResponseError - // Should not 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 }) -} - -func TestSettersMarkExplicitDocumentsUploadProxy409ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy409ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueWarningFlags int // Act - obj.SetCode(fernTestValueCode) + obj.SetWarningFlags(fernTestValueWarningFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299083,14 +300590,14 @@ func TestSettersMarkExplicitDocumentsUploadProxy409ResponseError(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("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocumentsUploadProxy409ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem // Act - obj.SetMessage(fernTestValueMessage) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299116,155 +300623,165 @@ func TestSettersMarkExplicitDocumentsUploadProxy409ResponseError(t *testing.T) { } -func TestSettersEngineErrorPayload(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &EngineErrorPayload{} - var fernTestValueName EngineErrorPayloadName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &EngineErrorPayload{} - var fernTestValueCode EngineErrorPayloadCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &EngineErrorPayload{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &EngineErrorPayload{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersEngineErrorPayload(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var expected EngineErrorPayloadName - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *EngineErrorPayload + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var expected EngineErrorPayloadCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *EngineErrorPayload + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot // Should not 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.GetSubtype() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var expected *string + obj.Script = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() - var obj *EngineErrorPayload + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot // Should not 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.GetScript() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var expected map[string]any - obj.Details = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - obj.Details = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *EngineErrorPayload + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot // Should not 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.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitEngineErrorPayload(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var fernTestValueName EngineErrorPayloadName + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType // Act - obj.SetName(fernTestValueName) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299288,14 +300805,14 @@ func TestSettersMarkExplicitEngineErrorPayload(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var fernTestValueCode EngineErrorPayloadCode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueSubtype string // Act - obj.SetCode(fernTestValueCode) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299319,14 +300836,14 @@ func TestSettersMarkExplicitEngineErrorPayload(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("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueScript *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299350,14 +300867,14 @@ func TestSettersMarkExplicitEngineErrorPayload(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &EngineErrorPayload{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + var fernTestValueNext []any // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299383,164 +300900,165 @@ func TestSettersMarkExplicitEngineErrorPayload(t *testing.T) { } -func TestSettersSharesCreate400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesCreate400Response{} - var fernTestValueError *SharesCreate400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesCreate400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400Response{} - var expected *SharesCreate400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesCreate400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetError() // Should return zero value + _ = obj.GetRoot() // Should return zero value }) -} - -func TestSettersMarkExplicitSharesCreate400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400Response{} - var fernTestValueError *SharesCreate400ResponseError - - // Act - obj.SetError(fernTestValueError) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var expected bool + obj.Incomplete = expected -func TestSettersSharesCreate400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesCreate400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesCreate400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value }) -} - -func TestGettersSharesCreate400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesCreate400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() - var obj *SharesCreate400ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitSharesCreate400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299564,14 +301082,14 @@ func TestSettersMarkExplicitSharesCreate400ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299595,64 +301113,45 @@ func TestSettersMarkExplicitSharesCreate400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesCreate403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesCreate403Response{} - var fernTestValueError *SharesCreate403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesCreate403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate403Response{} - var expected *SharesCreate403ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesCreate403Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesCreate403Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesCreate403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate403Response{} - var fernTestValueError *SharesCreate403ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299678,83 +301177,165 @@ func TestSettersMarkExplicitSharesCreate403Response(t *testing.T) { } -func TestSettersSharesCreate403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesCreate403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesCreate403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesCreate403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate403ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesCreate403ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate403ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesCreate403ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitSharesCreate403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299778,14 +301359,14 @@ func TestSettersMarkExplicitSharesCreate403ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299809,64 +301390,45 @@ func TestSettersMarkExplicitSharesCreate403ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesCreate404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesCreate404Response{} - var fernTestValueError *SharesCreate404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesCreate404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate404Response{} - var expected *SharesCreate404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesCreate404Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesCreate404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesCreate404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate404Response{} - var fernTestValueError *SharesCreate404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299892,83 +301454,165 @@ func TestSettersMarkExplicitSharesCreate404Response(t *testing.T) { } -func TestSettersSharesCreate404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesCreate404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesCreate404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesCreate404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *SharesCreate404ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate404ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesCreate404ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitSharesCreate404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -299992,14 +301636,14 @@ func TestSettersMarkExplicitSharesCreate404ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesCreate404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300023,64 +301667,45 @@ func TestSettersMarkExplicitSharesCreate404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesDeleteResponse(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesDeleteResponse{} - var fernTestValueError *SharesDeleteResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesDeleteResponse(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesDeleteResponse{} - var expected *SharesDeleteResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesDeleteResponse{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesDeleteResponse - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesDeleteResponse(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesDeleteResponse{} - var fernTestValueError *SharesDeleteResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300106,195 +301731,165 @@ func TestSettersMarkExplicitSharesDeleteResponse(t *testing.T) { } -func TestSettersSharesDeleteResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesDeleteResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesDeleteResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesDeleteResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesDeleteResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesDeleteResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesDeleteResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesDeleteResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot // Should not 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.GetSubtype() // Should return zero value }) -} - -func TestSettersMarkExplicitSharesDeleteResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesDeleteResponseError{} - var fernTestValueCode string - - // 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var expected *string + obj.Script = 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.GetScript(), "getter should return the property value") }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetScript_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesDeleteResponseError{} - 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + obj.Script = 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.GetScript(), "getter should return nil when property is nil") }) -} - -func TestSettersSharesExchange400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesExchange400Response{} - var fernTestValueError *SharesExchange400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) + t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + // Should not 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 }) -} - -func TestGettersSharesExchange400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("GetNext", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange400Response{} - var expected *SharesExchange400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var expected []any + obj.Next = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + t.Run("GetNext_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange400Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + obj.Next = nil // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetNext_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange400Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetError() // Should return zero value + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitSharesExchange400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange400Response{} - var fernTestValueError *SharesExchange400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType // Act - obj.SetError(fernTestValueError) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300318,85 +301913,45 @@ func TestSettersMarkExplicitSharesExchange400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesExchange400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesExchange400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesExchange400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesExchange400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange400ResponseError{} - var expected string - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueSubtype string - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesExchange400ResponseError - // Should not 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.SetSubtype(fernTestValueSubtype) - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesExchange400ResponseError{} - 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 *SharesExchange400ResponseError - // Should not 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 }) -} - -func TestSettersMarkExplicitSharesExchange400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueScript *string // Act - obj.SetCode(fernTestValueCode) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300420,14 +301975,14 @@ func TestSettersMarkExplicitSharesExchange400ResponseError(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("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + var fernTestValueNext []any // Act - obj.SetMessage(fernTestValueMessage) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300453,164 +302008,165 @@ func TestSettersMarkExplicitSharesExchange400ResponseError(t *testing.T) { } -func TestSettersSharesExchange403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesExchange403Response{} - var fernTestValueError *SharesExchange403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesExchange403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403Response{} - var expected *SharesExchange403ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + obj.Root = nil // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange403Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetError() // Should return zero value + _ = obj.GetRoot() // Should return zero value }) -} - -func TestSettersMarkExplicitSharesExchange403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403Response{} - var fernTestValueError *SharesExchange403ResponseError - - // Act - obj.SetError(fernTestValueError) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var expected bool + obj.Incomplete = expected -func TestSettersSharesExchange403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesExchange403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesExchange403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value }) -} - -func TestGettersSharesExchange403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("GetWarningFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var expected int + obj.WarningFlags = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange403ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp // Should not 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.GetWarningFlags() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetWarnings", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem + obj.Warnings = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetWarnings_NilValue", func(t *testing.T) { t.Parallel() - var obj *SharesExchange403ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp // Should not 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.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitSharesExchange403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300634,14 +302190,14 @@ func TestSettersMarkExplicitSharesExchange403ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300665,64 +302221,45 @@ func TestSettersMarkExplicitSharesExchange403ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesExchange404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesExchange404Response{} - var fernTestValueError *SharesExchange404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesExchange404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange404Response{} - var expected *SharesExchange404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesExchange404Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesExchange404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesExchange404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange404Response{} - var fernTestValueError *SharesExchange404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300748,83 +302285,165 @@ func TestSettersMarkExplicitSharesExchange404Response(t *testing.T) { } -func TestSettersSharesExchange404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesExchange404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesExchange404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesExchange404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange404ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange404ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange404ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitSharesExchange404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300848,14 +302467,14 @@ func TestSettersMarkExplicitSharesExchange404ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300879,64 +302498,45 @@ func TestSettersMarkExplicitSharesExchange404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesExchange410Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesExchange410Response{} - var fernTestValueError *SharesExchange410ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesExchange410Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange410Response{} - var expected *SharesExchange410ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesExchange410Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesExchange410Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesExchange410Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange410Response{} - var fernTestValueError *SharesExchange410ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -300962,83 +302562,165 @@ func TestSettersMarkExplicitSharesExchange410Response(t *testing.T) { } -func TestSettersSharesExchange410ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesExchange410ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesExchange410ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesExchange410ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange410ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *SharesExchange410ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange410ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange410ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitSharesExchange410ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange410ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301062,14 +302744,14 @@ func TestSettersMarkExplicitSharesExchange410ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange410ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301093,64 +302775,45 @@ func TestSettersMarkExplicitSharesExchange410ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesExchange422Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesExchange422Response{} - var fernTestValueError *SharesExchange422ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesExchange422Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange422Response{} - var expected *SharesExchange422ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesExchange422Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesExchange422Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesExchange422Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange422Response{} - var fernTestValueError *SharesExchange422ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301176,83 +302839,165 @@ func TestSettersMarkExplicitSharesExchange422Response(t *testing.T) { } -func TestSettersSharesExchange422ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesExchange422ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesExchange422ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesExchange422ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange422ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange422ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange422ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesExchange422ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitSharesExchange422ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange422ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301276,14 +303021,14 @@ func TestSettersMarkExplicitSharesExchange422ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesExchange422ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301307,64 +303052,45 @@ func TestSettersMarkExplicitSharesExchange422ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesGet404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesGet404Response{} - var fernTestValueError *SharesGet404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesGet404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesGet404Response{} - var expected *SharesGet404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesGet404Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesGet404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesGet404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesGet404Response{} - var fernTestValueError *SharesGet404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301390,83 +303116,165 @@ func TestSettersMarkExplicitSharesGet404Response(t *testing.T) { } -func TestSettersSharesGet404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesGet404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesGet404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesGet404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesGet404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *SharesGet404ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesGet404ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesGet404ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitSharesGet404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesGet404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301490,14 +303298,14 @@ func TestSettersMarkExplicitSharesGet404ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesGet404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301521,64 +303329,45 @@ func TestSettersMarkExplicitSharesGet404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesList400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesList400Response{} - var fernTestValueError *SharesList400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesList400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesList400Response{} - var expected *SharesList400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesList400Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesList400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesList400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesList400Response{} - var fernTestValueError *SharesList400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301604,83 +303393,165 @@ func TestSettersMarkExplicitSharesList400Response(t *testing.T) { } -func TestSettersSharesList400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesList400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesList400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesList400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesList400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesList400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesList400ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesList400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitSharesList400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesList400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301704,14 +303575,14 @@ func TestSettersMarkExplicitSharesList400ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesList400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301735,64 +303606,45 @@ func TestSettersMarkExplicitSharesList400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesUpdate400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesUpdate400Response{} - var fernTestValueError *SharesUpdate400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesUpdate400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate400Response{} - var expected *SharesUpdate400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesUpdate400Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesUpdate400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesUpdate400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate400Response{} - var fernTestValueError *SharesUpdate400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301818,83 +303670,165 @@ func TestSettersMarkExplicitSharesUpdate400Response(t *testing.T) { } -func TestSettersSharesUpdate400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesUpdate400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesUpdate400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesUpdate400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *SharesUpdate400ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesUpdate400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitSharesUpdate400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301918,14 +303852,14 @@ func TestSettersMarkExplicitSharesUpdate400ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -301949,64 +303883,45 @@ func TestSettersMarkExplicitSharesUpdate400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersSharesUpdate404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &SharesUpdate404Response{} - var fernTestValueError *SharesUpdate404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersSharesUpdate404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate404Response{} - var expected *SharesUpdate404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &SharesUpdate404Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesUpdate404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitSharesUpdate404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate404Response{} - var fernTestValueError *SharesUpdate404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302032,83 +303947,165 @@ func TestSettersMarkExplicitSharesUpdate404Response(t *testing.T) { } -func TestSettersSharesUpdate404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &SharesUpdate404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &SharesUpdate404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersSharesUpdate404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesUpdate404ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate404ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *SharesUpdate404ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitSharesUpdate404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302132,14 +304129,14 @@ func TestSettersMarkExplicitSharesUpdate404ResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SharesUpdate404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302163,64 +304160,45 @@ func TestSettersMarkExplicitSharesUpdate404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueScript *string -func TestSettersTenantsCreate400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsCreate400Response{} - var fernTestValueError *TenantsCreate400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsCreate400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsCreate400Response{} - var expected *TenantsCreate400ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsCreate400Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsCreate400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitTenantsCreate400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsCreate400Response{} - var fernTestValueError *TenantsCreate400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302246,83 +304224,165 @@ func TestSettersMarkExplicitTenantsCreate400Response(t *testing.T) { } -func TestSettersTenantsCreate400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsCreate400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &TenantsCreate400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersTenantsCreate400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsCreate400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + obj.Root = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRoot_NilValue", func(t *testing.T) { t.Parallel() - var obj *TenantsCreate400ResponseError + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible // Should not 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.GetRoot() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIncomplete", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsCreate400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var expected bool + obj.Incomplete = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsCreate400ResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible // Should not 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.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value }) } -func TestSettersMarkExplicitTenantsCreate400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsCreate400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot // Act - obj.SetCode(fernTestValueCode) + obj.SetRoot(fernTestValueRoot) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302346,14 +304406,14 @@ func TestSettersMarkExplicitTenantsCreate400ResponseError(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("SetIncomplete_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsCreate400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueIncomplete bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIncomplete(fernTestValueIncomplete) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302377,64 +304437,45 @@ func TestSettersMarkExplicitTenantsCreate400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsDeleteResponse(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsDeleteResponse{} - var fernTestValueError *TenantsDeleteResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsDeleteResponse(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsDeleteResponse{} - var expected *TenantsDeleteResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueWarningFlags int - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsDeleteResponse{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsDeleteResponse - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitTenantsDeleteResponse(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsDeleteResponse{} - var fernTestValueError *TenantsDeleteResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem // Act - obj.SetError(fernTestValueError) + obj.SetWarnings(fernTestValueWarnings) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302460,83 +304501,165 @@ func TestSettersMarkExplicitTenantsDeleteResponse(t *testing.T) { } -func TestSettersTenantsDeleteResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsDeleteResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &TenantsDeleteResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersTenantsDeleteResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsDeleteResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType + obj.Type = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsDeleteResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot // Should not 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.GetType() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsDeleteResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} var expected string - obj.Message = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsDeleteResponseError + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot // Should not 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.GetSubtype() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value }) } -func TestSettersMarkExplicitTenantsDeleteResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsDeleteResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType // Act - obj.SetCode(fernTestValueCode) + obj.SetType(fernTestValueType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302560,14 +304683,14 @@ func TestSettersMarkExplicitTenantsDeleteResponseError(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("SetSubtype_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsDeleteResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueSubtype string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSubtype(fernTestValueSubtype) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302591,64 +304714,45 @@ func TestSettersMarkExplicitTenantsDeleteResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsGet404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsGet404Response{} - var fernTestValueError *TenantsGet404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsGet404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsGet404Response{} - var expected *TenantsGet404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueScript *string - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetScript(fernTestValueScript) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsGet404Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsGet404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitTenantsGet404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetNext_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsGet404Response{} - var fernTestValueError *TenantsGet404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + var fernTestValueNext []any // Act - obj.SetError(fernTestValueError) + obj.SetNext(fernTestValueNext) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302674,83 +304778,114 @@ func TestSettersMarkExplicitTenantsGet404Response(t *testing.T) { } -func TestSettersTenantsGet404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsGet404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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("SetMessage", func(t *testing.T) { - obj := &TenantsGet404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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 TestGettersTenantsGet404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsGet404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsGet404ResponseError + 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.GetCode() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsGet404ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsGet404ResponseError + 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.GetMessage() // Should return zero value + _ = 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 TestSettersMarkExplicitTenantsGet404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsGet404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueR int // Act - obj.SetCode(fernTestValueCode) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302774,14 +304909,14 @@ func TestSettersMarkExplicitTenantsGet404ResponseError(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("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsGet404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueG int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302805,64 +304940,14 @@ func TestSettersMarkExplicitTenantsGet404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsList400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsList400Response{} - var fernTestValueError *TenantsList400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsList400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsList400Response{} - var expected *TenantsList400ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsList400Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsList400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitTenantsList400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsList400Response{} - var fernTestValueError *TenantsList400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueB int // Act - obj.SetError(fernTestValueError) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -302888,297 +304973,331 @@ func TestSettersMarkExplicitTenantsList400Response(t *testing.T) { } -func TestSettersTenantsList400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsList400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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("SetMessage", func(t *testing.T) { - obj := &TenantsList400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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 TestGettersTenantsList400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsList400ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsList400ResponseError + 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.GetCode() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsList400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsList400ResponseError + 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.GetMessage() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) -} - -func TestSettersMarkExplicitTenantsList400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsList400ResponseError{} - var fernTestValueCode string - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + 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 *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("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsList400ResponseError{} - 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") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.NoZoom = 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.GetNoZoom(), "getter should return the property value") }) -} - -func TestSettersTenantsResumeResponse(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsResumeResponse{} - var fernTestValueError *TenantsResumeResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) + 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 }) -} - -func TestGettersTenantsResumeResponse(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsResumeResponse{} - var expected *TenantsResumeResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + 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 := &TenantsResumeResponse{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsResumeResponse + 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.GetError() // Should return zero value + _ = obj.GetNoView() // Should return zero value }) -} - -func TestSettersMarkExplicitTenantsResumeResponse(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsResumeResponse{} - var fernTestValueError *TenantsResumeResponseError - - // Act - obj.SetError(fernTestValueError) - - // Assert - 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.ReadOnly = 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.GetReadOnly(), "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("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 -func TestSettersTenantsResumeResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsResumeResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("SetMessage", func(t *testing.T) { - obj := &TenantsResumeResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + 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 }) -} - -func TestGettersTenantsResumeResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsResumeResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsResumeResponseError + 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.GetCode() // Should return zero value + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsResumeResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsResumeResponseError + 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.GetMessage() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitTenantsResumeResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsResumeResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueInvisible bool // Act - obj.SetCode(fernTestValueCode) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303202,14 +305321,14 @@ func TestSettersMarkExplicitTenantsResumeResponseError(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("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsResumeResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueHidden bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303233,64 +305352,14 @@ func TestSettersMarkExplicitTenantsResumeResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsSuspendResponse(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsSuspendResponse{} - var fernTestValueError *TenantsSuspendResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsSuspendResponse(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsSuspendResponse{} - var expected *TenantsSuspendResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsSuspendResponse{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsSuspendResponse - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitTenantsSuspendResponse(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsSuspendResponse{} - var fernTestValueError *TenantsSuspendResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValuePrint bool // Act - obj.SetError(fernTestValueError) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303314,85 +305383,14 @@ func TestSettersMarkExplicitTenantsSuspendResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsSuspendResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsSuspendResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &TenantsSuspendResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsSuspendResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsSuspendResponseError{} - var expected string - 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 *TenantsSuspendResponseError - // Should not 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 := &TenantsSuspendResponseError{} - 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 *TenantsSuspendResponseError - // Should not 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 - }) - -} - -func TestSettersMarkExplicitTenantsSuspendResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsSuspendResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoZoom bool // Act - obj.SetCode(fernTestValueCode) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303416,14 +305414,14 @@ func TestSettersMarkExplicitTenantsSuspendResponseError(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("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsSuspendResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoRotate bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303447,64 +305445,45 @@ func TestSettersMarkExplicitTenantsSuspendResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsUsage400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsUsage400Response{} - var fernTestValueError *TenantsUsage400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsUsage400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage400Response{} - var expected *TenantsUsage400ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) + // Act + obj.SetNoView(fernTestValueNoView) - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsUsage400Response{} - obj.Error = 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.GetError(), "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("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsUsage400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // 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 TestSettersMarkExplicitTenantsUsage400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage400Response{} - var fernTestValueError *TenantsUsage400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueReadOnly bool // Act - obj.SetError(fernTestValueError) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303528,85 +305507,45 @@ func TestSettersMarkExplicitTenantsUsage400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTenantsUsage400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsUsage400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &TenantsUsage400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTenantsUsage400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage400ResponseError{} - var expected string - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueLocked bool - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsUsage400ResponseError - // Should not 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.SetLocked(fernTestValueLocked) - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TenantsUsage400ResponseError{} - 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 *TenantsUsage400ResponseError - // Should not 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 }) -} - -func TestSettersMarkExplicitTenantsUsage400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetCode(fernTestValueCode) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303630,14 +305569,14 @@ func TestSettersMarkExplicitTenantsUsage400ResponseError(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("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueLockedContents bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303663,164 +305602,249 @@ func TestSettersMarkExplicitTenantsUsage400ResponseError(t *testing.T) { } -func TestSettersTenantsUsage404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TenantsUsage404Response{} - var fernTestValueError *TenantsUsage404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) +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 + }) -func TestGettersTenantsUsage404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage404Response{} - var expected *TenantsUsage404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage404Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsUsage404Response + 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.GetError() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) -} + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + obj.Nm = expected -func TestSettersMarkExplicitTenantsUsage404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + // 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 := &TenantsUsage404Response{} - var fernTestValueError *TenantsUsage404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + obj.Nm = nil - // Act - obj.SetError(fernTestValueError) + // 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 *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 + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + 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 := &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 TestSettersTenantsUsage404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TenantsUsage404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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("SetMessage", func(t *testing.T) { - obj := &TenantsUsage404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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 TestGettersTenantsUsage404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + 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 *TenantsUsage404ResponseError + 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.GetCode() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage404ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TenantsUsage404ResponseError + 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.GetMessage() // Should return zero value + _ = 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 TestSettersMarkExplicitTenantsUsage404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetCode(fernTestValueCode) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303844,14 +305868,14 @@ func TestSettersMarkExplicitTenantsUsage404ResponseError(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("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TenantsUsage404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303875,64 +305899,14 @@ func TestSettersMarkExplicitTenantsUsage404ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTokensIssue400Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TokensIssue400Response{} - var fernTestValueError *TokensIssue400ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTokensIssue400Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TokensIssue400Response{} - var expected *TokensIssue400ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TokensIssue400Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TokensIssue400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitTokensIssue400Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue400Response{} - var fernTestValueError *TokensIssue400ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision // Act - obj.SetError(fernTestValueError) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -303958,83 +305932,114 @@ func TestSettersMarkExplicitTokensIssue400Response(t *testing.T) { } -func TestSettersTokensIssue400ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TokensIssue400ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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("SetMessage", func(t *testing.T) { - obj := &TokensIssue400ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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 TestGettersTokensIssue400ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue400ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} var expected string - obj.Code = expected + 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 *TokensIssue400ResponseError + 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.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 := &TokensIssue400ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + 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 *TokensIssue400ResponseError + 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.GetMessage() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + 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 TestSettersMarkExplicitTokensIssue400ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue400ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + 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) @@ -304058,14 +306063,14 @@ func TestSettersMarkExplicitTokensIssue400ResponseError(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 := &TokensIssue400ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + 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) @@ -304089,64 +306094,14 @@ func TestSettersMarkExplicitTokensIssue400ResponseError(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersTokensIssue403Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TokensIssue403Response{} - var fernTestValueError *TokensIssue403ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTokensIssue403Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TokensIssue403Response{} - var expected *TokensIssue403ResponseError - obj.Error = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") - }) - - t.Run("GetError_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TokensIssue403Response{} - obj.Error = nil - - // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") - }) - - t.Run("GetError_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TokensIssue403Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetError() // Should return zero value - }) - -} - -func TestSettersMarkExplicitTokensIssue403Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue403Response{} - var fernTestValueError *TokensIssue403ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetError(fernTestValueError) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304172,83 +306127,83 @@ func TestSettersMarkExplicitTokensIssue403Response(t *testing.T) { } -func TestSettersTokensIssue403ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TokensIssue403ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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("SetMessage", func(t *testing.T) { - obj := &TokensIssue403ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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 TestGettersTokensIssue403ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue403ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + 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 *TokensIssue403ResponseError + 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.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 := &TokensIssue403ResponseError{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} var expected string - obj.Message = expected + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TokensIssue403ResponseError + 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.GetMessage() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitTokensIssue403ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue403ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetCode(fernTestValueCode) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304272,14 +306227,14 @@ func TestSettersMarkExplicitTokensIssue403ResponseError(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("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue403ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var fernTestValueNm string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304305,62 +306260,114 @@ func TestSettersMarkExplicitTokensIssue403ResponseError(t *testing.T) { } -func TestSettersTokensIssue404Response(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TokensIssue404Response{} - var fernTestValueError *TokensIssue404ResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) +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 TestGettersTokensIssue404Response(t *testing.T) { - t.Run("GetError", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue404Response{} - var expected *TokensIssue404ResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + 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 + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue404Response{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TokensIssue404Response + 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.GetError() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitTokensIssue404Response(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue404Response{} - var fernTestValueError *TokensIssue404ResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetError(fernTestValueError) + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304386,83 +306393,83 @@ func TestSettersMarkExplicitTokensIssue404Response(t *testing.T) { } -func TestSettersTokensIssue404ResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TokensIssue404ResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +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("SetMessage", func(t *testing.T) { - obj := &TokensIssue404ResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + 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 TestGettersTokensIssue404ResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue404ResponseError{} - var expected string - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TokensIssue404ResponseError + 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.GetCode() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue404ResponseError{} - var expected string - obj.Message = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TokensIssue404ResponseError + 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.GetMessage() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitTokensIssue404ResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensIssue404ResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var fernTestValueX float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304486,14 +306493,14 @@ func TestSettersMarkExplicitTokensIssue404ResponseError(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 := &TokensIssue404ResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var fernTestValueY float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304519,62 +306526,145 @@ func TestSettersMarkExplicitTokensIssue404ResponseError(t *testing.T) { } -func TestSettersTokensRevokeResponse(t *testing.T) { - t.Run("SetError", func(t *testing.T) { - obj := &TokensRevokeResponse{} - var fernTestValueError *TokensRevokeResponseError - obj.SetError(fernTestValueError) - assert.Equal(t, fernTestValueError, obj.Error) +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 TestGettersTokensRevokeResponse(t *testing.T) { - t.Run("GetError", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensRevokeResponse{} - var expected *TokensRevokeResponseError - obj.Error = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetError_NilValue", func(t *testing.T) { + 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 + }) + + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensRevokeResponse{} - obj.Error = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *TokensRevokeResponse + 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.GetError() // Should return zero value + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + 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 *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 + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + 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 *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 TestSettersMarkExplicitTokensRevokeResponse(t *testing.T) { - t.Run("SetError_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensRevokeResponse{} - var fernTestValueError *TokensRevokeResponseError + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueLeft float64 // Act - obj.SetError(fernTestValueError) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304598,85 +306688,45 @@ func TestSettersMarkExplicitTokensRevokeResponse(t *testing.T) { // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueBottom float64 -func TestSettersTokensRevokeResponseError(t *testing.T) { - t.Run("SetCode", func(t *testing.T) { - obj := &TokensRevokeResponseError{} - var fernTestValueCode string - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetBottom(fernTestValueBottom) - t.Run("SetMessage", func(t *testing.T) { - obj := &TokensRevokeResponseError{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersTokensRevokeResponseError(t *testing.T) { - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &TokensRevokeResponseError{} - var expected string - 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 *TokensRevokeResponseError - // Should not 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 := &TokensRevokeResponseError{} - 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 *TokensRevokeResponseError - // Should not 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 }) -} - -func TestSettersMarkExplicitTokensRevokeResponseError(t *testing.T) { - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensRevokeResponseError{} - var fernTestValueCode string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueRight float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304700,14 +306750,14 @@ func TestSettersMarkExplicitTokensRevokeResponseError(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("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &TokensRevokeResponseError{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueTop float64 // Act - obj.SetMessage(fernTestValueMessage) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -304733,56840 +306783,379249 @@ func TestSettersMarkExplicitTokensRevokeResponseError(t *testing.T) { } -func TestJSONMarshalingAdminErrorPayload(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &AdminErrorPayload{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected string + obj.Kind = expected - // Unmarshal back and verify round-trip - var unmarshaled AdminErrorPayload - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj AdminErrorPayload - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() - var obj AdminErrorPayload - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) -} -func TestJSONMarshalingAdminErrorPayloadError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &AdminErrorPayloadError{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj.ObjectNumber = nil - // Unmarshal back and verify round-trip - var unmarshaled AdminErrorPayloadError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj AdminErrorPayloadError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() - var obj AdminErrorPayloadError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsCreate200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200Response{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj.Nm = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsCreate200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMeta{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj.Index = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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 }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") - }) } -func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItem{} - - // 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") +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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var expected int + obj.PageObjectNumber = expected - // 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") + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("GetPageObjectNumber_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.GetPageObjectNumber() // Should return zero value }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetIndex() // Should return zero value }) -} -func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + obj.Revision = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetRevision() // Should return zero value }) + } -func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValuePageObjectNumber int - // 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") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValueIndex int - // 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") + // Act + obj.SetIndex(fernTestValueIndex) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision - // 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") + // Act + obj.SetRevision(fernTestValueRevision) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") +} + +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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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("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 TestJSONMarshalingDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var expected string + obj.DocSessionID = expected - // 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") + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetDocSessionID() // Should return zero value }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetPageObjectNumber() // Should return zero value }) -} -func TestJSONMarshalingDocAnnotationsCreate400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate400Response{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var expected int + obj.Generation = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsCreate400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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.GetGeneration() // Should return zero value }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") - }) } -func TestJSONMarshalingDocAnnotationsCreate404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsCreate404Response{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValueDocSessionID string - // 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") + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsCreate404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsCreate404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsDelete200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200Response{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValuePageObjectNumber int - // 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") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsDelete200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMeta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValueGeneration int - // 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") + // Act + obj.SetGeneration(fernTestValueGeneration) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") +} + +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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var expected int + obj.PageObjectNumber = expected - // 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") + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var fernTestValuePageObjectNumber int - // 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") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var fernTestValueNm string - // 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") + // Act + obj.SetNm(fernTestValueNm) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") +} + +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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected - // 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") + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 TestJSONMarshalingDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var fernTestValuePageObjectNumber int - // 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") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var fernTestValueAnnotObjectNumber int - // 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") + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") - }) + // Assert - 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} -func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache{} +} - // 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") +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) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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) }) -} -func TestJSONMarshalingDocAnnotationsDelete404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsDelete404Response{} + 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) + }) - // 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") + 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) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsDelete404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsDelete404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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) }) -} -func TestJSONMarshalingDocAnnotationsList200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200Response{} + 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) + }) - // 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") + 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) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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) }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + 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) + }) - // 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") + 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) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaret - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaret - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaret - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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) }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActions{} + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) - // 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") + 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) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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) }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate{} + 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) + }) - // 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") + 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) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + 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("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + obj.Ref = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetRef() // Should return zero value }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected int + obj.PageObjectNumber = expected - // 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") + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("GetPageObjectNumber_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.GetPageObjectNumber() // Should return zero value }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + obj.IdentityQuality = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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 }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Nm = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Flags = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Rect = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Contents = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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 }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Subject = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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.GetSubject() // Should return zero value }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Author = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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.GetAuthor() // Should return zero value }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Created = nil - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + 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.GetCreated() // Should return zero value }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Modified = nil - // 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") + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("GetModified_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.GetModified() // Should return zero value }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + obj.InReplyTo = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetInReplyTo() // Should return zero value }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + obj.ReplyType = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetReplyType() // Should return zero value }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.UserID = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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.GetUserID() // Should return zero value }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.GroupID = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible{} - - // 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") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.CreatedBy = expected - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + 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 }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.UpdatedBy = expected - // 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") + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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 + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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 + }) + + t.Run("GetStrokeWidth", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle + 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 *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 + }) + + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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 + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *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 + }) + + t.Run("GetLinePoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + obj.LinePoints = expected + + // 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 + + // Act & Assert + assert.Nil(t, obj.GetLinePoints(), "getter should return nil when property is nil") + }) + + 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 + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.LineEndings = nil + + // Act & Assert + assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") + }) + + t.Run("GetLineEndings_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.GetLineEndings() // Should return zero value + }) + + t.Run("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &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.GetRotation() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + + // 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("SetLinePoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + + // Act + obj.SetLinePoints(fernTestValueLinePoints) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + + // 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 + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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("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("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +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") + }) + + 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("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + 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 *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.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + 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 *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.GetB() // 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + 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 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("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("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *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.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + 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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + + // 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + 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 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 := &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.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 := &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") + } + + // Note: This does not 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 := &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 + }) + +} + +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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart + 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 *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 + }) + + t.Run("GetEnd", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd + 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 *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 := &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") + } + + // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd + + // 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 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + 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 *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("GetEnd", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("SetStart_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var fernTestValueStart *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var fernTestValueEnd *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + + // 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 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + 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 *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 + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + 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 *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 + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + 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 := &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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 *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 + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 *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.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 *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 + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + 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 *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.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + 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 *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.GetIndex() // Should return zero 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("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("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + 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 *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.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + + // 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 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) + }) + + 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 *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("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 *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("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + 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 *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.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + 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 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 := &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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode + 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 *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.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") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.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") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetTarget", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + + // 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("SetTarget_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueTarget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + + // Act + obj.SetTarget(fernTestValueTarget) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + 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 *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.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + 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 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 *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.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 *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.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 *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.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + // Should not 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 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) + 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + + // 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} + 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 *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 + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} + 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 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + + // 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not 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("GetXyz", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + obj.Xyz = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetXyz(), "getter should return the property value") + }) + + t.Run("GetXyz_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.Xyz = nil + + // Act & Assert + assert.Nil(t, obj.GetXyz(), "getter should return nil when property is nil") + }) + + t.Run("GetXyz_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetXyz() // Should return zero value + }) + + t.Run("GetFit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + obj.Fit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFit(), "getter should return the property value") + }) + + t.Run("GetFit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.Fit = nil + + // Act & Assert + assert.Nil(t, obj.GetFit(), "getter should return nil when property is nil") + }) + + t.Run("GetFit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFit() // Should return zero value + }) + + t.Run("GetFitH", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + obj.FitH = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFitH(), "getter should return the property value") + }) + + t.Run("GetFitH_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.FitH = nil + + // Act & Assert + assert.Nil(t, obj.GetFitH(), "getter should return nil when property is nil") + }) + + t.Run("GetFitH_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFitH() // Should return zero value + }) + + t.Run("GetFitV", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + obj.FitV = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFitV(), "getter should return the property value") + }) + + t.Run("GetFitV_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.FitV = nil + + // Act & Assert + assert.Nil(t, obj.GetFitV(), "getter should return nil when property is nil") + }) + + t.Run("GetFitV_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFitV() // Should return zero value + }) + + t.Run("GetFitR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + obj.FitR = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFitR(), "getter should return the property value") + }) + + t.Run("GetFitR_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.FitR = nil + + // Act & Assert + assert.Nil(t, obj.GetFitR(), "getter should return nil when property is nil") + }) + + t.Run("GetFitR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFitR() // Should return zero value + }) + + t.Run("GetFitB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + obj.FitB = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFitB(), "getter should return the property value") + }) + + t.Run("GetFitB_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.FitB = nil + + // Act & Assert + assert.Nil(t, obj.GetFitB(), "getter should return nil when property is nil") + }) + + t.Run("GetFitB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFitB() // Should return zero value + }) + + t.Run("GetFitBh", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + obj.FitBh = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFitBh(), "getter should return the property value") + }) + + t.Run("GetFitBh_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.FitBh = nil + + // Act & Assert + assert.Nil(t, obj.GetFitBh(), "getter should return nil when property is nil") + }) + + t.Run("GetFitBh_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFitBh() // Should return zero value + }) + + t.Run("GetFitBv", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + obj.FitBv = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFitBv(), "getter should return the property value") + }) + + t.Run("GetFitBv_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination{} + obj.FitBv = nil + + // Act & Assert + assert.Nil(t, obj.GetFitBv(), "getter should return nil when property is nil") + }) + + t.Run("GetFitBv_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestination + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFitBv() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + // Should not panic - getters should handle nil 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + // Should not panic - getters should handle nil 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + var fernTestValueTop *float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + // Should not panic - getters should handle nil 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("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + var expected *float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + obj.Top = nil + + // Act & Assert + assert.Nil(t, obj.GetTop(), "getter should return nil when property is nil") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + 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("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + var fernTestValueLeft *float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + // Should not panic - getters should handle nil 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("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + var expected *float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + obj.Left = nil + + // Act & Assert + assert.Nil(t, obj.GetLeft(), "getter should return nil when property is nil") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + 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("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + 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 + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + var fernTestValueTop *float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + // Should not panic - getters should handle nil 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("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + var expected *float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + obj.Top = nil + + // Act & Assert + assert.Nil(t, obj.GetTop(), "getter should return nil when property is nil") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + 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("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + // Should not panic - getters should handle nil 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("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + var fernTestValueLeft *float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + // Should not panic - getters should handle nil 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("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + var expected *float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + obj.Left = nil + + // Act & Assert + assert.Nil(t, obj.GetLeft(), "getter should return nil when property is nil") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + 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("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + 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 + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var fernTestValueTop *float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var fernTestValueZoom *float64 + obj.SetZoom(fernTestValueZoom) + assert.Equal(t, fernTestValueZoom, obj.Zoom) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + // Should not panic - getters should handle nil 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("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var expected *float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + obj.Left = nil + + // Act & Assert + assert.Nil(t, obj.GetLeft(), "getter should return nil when property is nil") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var expected *float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + obj.Top = nil + + // Act & Assert + assert.Nil(t, obj.GetTop(), "getter should return nil when property is nil") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + // Should not 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("GetZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var expected *float64 + obj.Zoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetZoom(), "getter should return the property value") + }) + + t.Run("GetZoom_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + obj.Zoom = nil + + // Act & Assert + assert.Nil(t, obj.GetZoom(), "getter should return nil when property is nil") + }) + + t.Run("GetZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetZoom() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + 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("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + 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("SetZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + var fernTestValueZoom *float64 + + // Act + obj.SetZoom(fernTestValueZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("SetURI_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + 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 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("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + 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) + }) + + 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) + }) + + 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) + }) + + 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) + 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) + 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) + 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) + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode + 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 *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 + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + + t.Run("GetStrokeWidth", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle + 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 *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.GetBorderStyle() // Should return zero value + }) + + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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.GetDashArray() // Should return zero value + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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("GetVertices", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.Vertices = nil + + // Act & Assert + assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") + }) + + 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("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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("GetCloudyIntensity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &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") + } + + // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + 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 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("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("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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 *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.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 *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.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 *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.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 *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.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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 := &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) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + // Should not 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) + }) + + 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("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", 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") + } + + // Note: This does not 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 := &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") + } + + // Note: This does not 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 := &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) + }) + + 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("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 *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 + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 *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.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + 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 := &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("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + 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 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("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + 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("GetActions_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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetOpacity() // Should return zero value + }) + + t.Run("GetStrokeWidth", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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 + }) + + t.Run("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + 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 *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.GetBorderStyle() // Should return zero value + }) + + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.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") + }) + + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.GetInteriorColor() // Should return zero value + }) + + t.Run("GetVertices", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Vertices = nil + + // Act & Assert + assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") + }) + + t.Run("GetVertices_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.GetVertices() // Should return zero value + }) + + t.Run("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *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.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") + }) + + t.Run("GetLineEndings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.LineEndings = nil + + // Act & Assert + assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") + }) + + t.Run("GetLineEndings_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.GetLineEndings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType + + // 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 := &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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) + }) + + 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 *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("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 *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 + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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 + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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 + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *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.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 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") + }) + + 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("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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + 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 *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.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") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + 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 *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 + }) + +} + +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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + // Should not 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") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + + // 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 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} + 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 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} + 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 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) + 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) + 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + 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 *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.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + 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 *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.GetB() // 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + 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 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 := &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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + 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 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) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + 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.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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) + 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) + 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) + 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) + 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetOpacity() // Should return zero value + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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 + }) + + t.Run("GetOverlayText", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetOverlayText() // Should return zero value + }) + + t.Run("GetRepeat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetRepeat() // Should return zero value + }) + + t.Run("GetFontFamily", 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") + }) + + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetFontSize() // Should return zero value + }) + + t.Run("GetFontColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *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.GetFontColor() // Should return zero value + }) + + t.Run("GetTextAlign", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign + 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 *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.GetTextAlign() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + + // 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 := &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 + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 := &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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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.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 *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.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") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + 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 *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.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + 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 := &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.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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + 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 := &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.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + + // 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + 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 *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 := &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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + 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 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + 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 *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 + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + 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 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + 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 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("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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 *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.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 *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.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 *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.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 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) + 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) + 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 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) { + t.Parallel() + // 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.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") + }) + + t.Run("GetP3_NilValue", func(t *testing.T) { + t.Parallel() + // 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.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 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + + // 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + 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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + 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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + 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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + 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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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 + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *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 := &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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + 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 := &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.GetUnrotatedRect() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *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.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + 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 := &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.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + 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 *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("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + 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 *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 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("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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + 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 := &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.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + + // 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 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("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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 *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.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + 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 *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.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + 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 *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.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + 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 *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.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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + 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 *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.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + 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 *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.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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + 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 := &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) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 *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.GetLeft() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 *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 + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 *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.GetRight() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 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 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) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetOpacity() // Should return zero value + }) + + t.Run("GetQuadPoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *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.GetQuadPoints() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + + // 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 := &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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + + // 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 := &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) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) + }) + + 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 *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 + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 *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 + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 := &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.Parallel() + // Arrange + 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.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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + 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 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 := &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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 *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.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 *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 + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 *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.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &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.GetRotation() // Should return zero value + }) + + t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *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.GetUnrotatedRect() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &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("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + 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 *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.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + 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 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + 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("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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + 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 := &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.GetQuadPoints() // Should return zero value + }) + + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *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.GetIntent() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 := &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) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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("GetG_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.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 := &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 := &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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + 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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *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.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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *string + obj.StateModel = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStateModel(), "getter should return the property value") + }) + + t.Run("GetStateModel_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj.StateModel = nil + + // Act & Assert + assert.Nil(t, obj.GetStateModel(), "getter should return nil when property is nil") + }) + + t.Run("GetStateModel_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.GetStateModel() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 := &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.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) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetOpacity() // Should return zero value + }) + + t.Run("GetQuadPoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *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.GetQuadPoints() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 := &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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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") + }) + + 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 + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 := &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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + 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 *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.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + 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 *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.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetRawSubtypeCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected int + obj.RawSubtypeCode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRawSubtypeCode(), "getter should return the property value") + }) + + t.Run("GetRawSubtypeCode_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetRawSubtypeCode() // Should return zero value + }) + + t.Run("GetRawSubtypeName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *string + obj.RawSubtypeName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRawSubtypeName(), "getter should return the property value") + }) + + t.Run("GetRawSubtypeName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *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.GetRawSubtypeName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + + // 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("SetRawSubtypeCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeCode int + + // Act + obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRawSubtypeName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeName *string + + // Act + obj.SetRawSubtypeName(fernTestValueRawSubtypeName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + 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 *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.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + 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 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("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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + // Should not 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + + // 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + 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 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) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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) + 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) + 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) + }) + + 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("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("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("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("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("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("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("SetBlendMode", func(t *testing.T) { + 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 := &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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueActions *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + 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) + 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) + }) + + 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 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality + 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 *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.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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 + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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 + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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 + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode + 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 *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.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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 + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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 + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + 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 := &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.GetColor() // Should return zero value + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *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.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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + + // 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 := &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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + + // 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 + }) + + t.Run("SetFieldFamily_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily + + // Act + obj.SetFieldFamily(fernTestValueFieldFamily) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(t *testing.T) { + t.Run("SetActivate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + obj.SetActivate(fernTestValueActivate) + assert.Equal(t, fernTestValueActivate, obj.Activate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorEnter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + obj.SetCursorEnter(fernTestValueCursorEnter) + assert.Equal(t, fernTestValueCursorEnter, obj.CursorEnter) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCursorExit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + obj.SetCursorExit(fernTestValueCursorExit) + assert.Equal(t, fernTestValueCursorExit, obj.CursorExit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseDown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + obj.SetMouseDown(fernTestValueMouseDown) + assert.Equal(t, fernTestValueMouseDown, obj.MouseDown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMouseUp", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + obj.SetMouseUp(fernTestValueMouseUp) + assert.Equal(t, fernTestValueMouseUp, obj.MouseUp) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFocus", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + obj.SetFocus(fernTestValueFocus) + assert.Equal(t, fernTestValueFocus, obj.Focus) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlur", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + obj.SetBlur(fernTestValueBlur) + assert.Equal(t, fernTestValueBlur, obj.Blur) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageOpen", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + obj.SetPageOpen(fernTestValuePageOpen) + assert.Equal(t, fernTestValuePageOpen, obj.PageOpen) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageClose", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + obj.SetPageClose(fernTestValuePageClose) + assert.Equal(t, fernTestValuePageClose, obj.PageClose) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageVisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + obj.SetPageVisible(fernTestValuePageVisible) + assert.Equal(t, fernTestValuePageVisible, obj.PageVisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + obj.SetPageInvisible(fernTestValuePageInvisible) + assert.Equal(t, fernTestValuePageInvisible, obj.PageInvisible) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(t *testing.T) { + t.Run("GetActivate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + obj.Activate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActivate(), "getter should return the property value") + }) + + t.Run("GetActivate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.Activate = nil + + // Act & Assert + assert.Nil(t, obj.GetActivate(), "getter should return nil when property is nil") + }) + + t.Run("GetActivate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActivate() // Should return zero value + }) + + t.Run("GetCursorEnter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + obj.CursorEnter = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorEnter(), "getter should return the property value") + }) + + t.Run("GetCursorEnter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.CursorEnter = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorEnter(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorEnter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorEnter() // Should return zero value + }) + + t.Run("GetCursorExit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + obj.CursorExit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCursorExit(), "getter should return the property value") + }) + + t.Run("GetCursorExit_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.CursorExit = nil + + // Act & Assert + assert.Nil(t, obj.GetCursorExit(), "getter should return nil when property is nil") + }) + + t.Run("GetCursorExit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCursorExit() // Should return zero value + }) + + t.Run("GetMouseDown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + obj.MouseDown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseDown(), "getter should return the property value") + }) + + t.Run("GetMouseDown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.MouseDown = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseDown(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseDown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseDown() // Should return zero value + }) + + t.Run("GetMouseUp", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + obj.MouseUp = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMouseUp(), "getter should return the property value") + }) + + t.Run("GetMouseUp_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.MouseUp = nil + + // Act & Assert + assert.Nil(t, obj.GetMouseUp(), "getter should return nil when property is nil") + }) + + t.Run("GetMouseUp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMouseUp() // Should return zero value + }) + + t.Run("GetFocus", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + obj.Focus = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFocus(), "getter should return the property value") + }) + + t.Run("GetFocus_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.Focus = nil + + // Act & Assert + assert.Nil(t, obj.GetFocus(), "getter should return nil when property is nil") + }) + + t.Run("GetFocus_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFocus() // Should return zero value + }) + + t.Run("GetBlur", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + obj.Blur = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlur(), "getter should return the property value") + }) + + t.Run("GetBlur_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.Blur = nil + + // Act & Assert + assert.Nil(t, obj.GetBlur(), "getter should return nil when property is nil") + }) + + t.Run("GetBlur_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlur() // Should return zero value + }) + + t.Run("GetPageOpen", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + obj.PageOpen = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageOpen(), "getter should return the property value") + }) + + t.Run("GetPageOpen_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.PageOpen = nil + + // Act & Assert + assert.Nil(t, obj.GetPageOpen(), "getter should return nil when property is nil") + }) + + t.Run("GetPageOpen_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageOpen() // Should return zero value + }) + + t.Run("GetPageClose", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + obj.PageClose = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageClose(), "getter should return the property value") + }) + + t.Run("GetPageClose_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.PageClose = nil + + // Act & Assert + assert.Nil(t, obj.GetPageClose(), "getter should return nil when property is nil") + }) + + t.Run("GetPageClose_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageClose() // Should return zero value + }) + + t.Run("GetPageVisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + obj.PageVisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageVisible(), "getter should return the property value") + }) + + t.Run("GetPageVisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.PageVisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageVisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageVisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageVisible() // Should return zero value + }) + + t.Run("GetPageInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + obj.PageInvisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageInvisible(), "getter should return the property value") + }) + + t.Run("GetPageInvisible_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + obj.PageInvisible = nil + + // Act & Assert + assert.Nil(t, obj.GetPageInvisible(), "getter should return nil when property is nil") + }) + + t.Run("GetPageInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageInvisible() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(t *testing.T) { + t.Run("SetActivate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueActivate *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + + // Act + obj.SetActivate(fernTestValueActivate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorEnter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueCursorEnter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + + // Act + obj.SetCursorEnter(fernTestValueCursorEnter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCursorExit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueCursorExit *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + + // Act + obj.SetCursorExit(fernTestValueCursorExit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseDown_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueMouseDown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + + // Act + obj.SetMouseDown(fernTestValueMouseDown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMouseUp_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueMouseUp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + + // Act + obj.SetMouseUp(fernTestValueMouseUp) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFocus_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueFocus *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + + // Act + obj.SetFocus(fernTestValueFocus) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlur_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValueBlur *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + + // Act + obj.SetBlur(fernTestValueBlur) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageOpen_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageOpen *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + + // Act + obj.SetPageOpen(fernTestValuePageOpen) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageClose_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageClose *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + + // Act + obj.SetPageClose(fernTestValuePageClose) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageVisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageVisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + + // Act + obj.SetPageVisible(fernTestValuePageVisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + var fernTestValuePageInvisible *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + + // Act + obj.SetPageInvisible(fernTestValuePageInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueRoot *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + var fernTestValueWarnings []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var expected *string + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueType DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 := &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.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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + 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 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) + 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) + 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) + 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) + 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) + }) + + 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) + }) + + 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("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("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + // Should not 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 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + + // 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 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) + }) + + 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 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) + }) + + 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) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} + 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 TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + 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 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", 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") + } + + // Note: This does not 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 := &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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + // Should not 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 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("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + // Should not panic - getters should handle nil 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + // Should not 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + // Should not 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 TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + + // 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} + 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 := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} + 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 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.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("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("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("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("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("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 + }) + +} + +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("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("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) { + 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) + }) + +} + +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("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("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("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) + }) + +} + +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("SetDetails_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + 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 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) + 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) + 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) + 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll409Response{} + var expected DocAnnotationsListAll409ResponseCode + 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 *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.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll409Response{} + 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 *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.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") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll409Response{} + 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 *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.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll409Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll409Response{} + var fernTestValueName DocAnnotationsListAll409ResponseName + + // 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 := &DocAnnotationsListAll409Response{} + var fernTestValueCode DocAnnotationsListAll409ResponseCode + + // 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 := &DocAnnotationsListAll409Response{} + 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 := &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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) + }) + +} + +func TestGettersDocAnnotationsUpdate200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200Response{} + var expected *DocAnnotationsUpdate200ResponseMeta + 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 := &DocAnnotationsUpdate200Response{} + 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 *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.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) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMeta{} + var expected []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAffectedPages() // 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") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetCacheDelta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMeta{} + var fernTestValueAffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMeta{} + var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta + + // 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 + }) + +} + +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("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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + 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 *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.GetRevision() // Should return zero value + }) + + t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + 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 *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.GetWeakAnnotationState() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + 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 *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 := &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) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetUnknown() // Should return zero value + }) + + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKnown() // Should return zero value + }) + +} + +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 := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *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.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", 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 + }) + +} + +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("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.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_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.GetPreviousDocVersion() // Should return zero value + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_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.GetDocVersion() // Should return zero value + }) + + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_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.GetAnnotationsVersion() // Should return zero value + }) + + t.Run("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // 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.GetPages() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + 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 := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + 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 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.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueName DocAnnotationsUpdate400ResponseName + + // 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 := &DocAnnotationsUpdate400Response{} + var fernTestValueCode DocAnnotationsUpdate400ResponseCode + + // 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 := &DocAnnotationsUpdate400Response{} + 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 := &DocAnnotationsUpdate400Response{} + 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 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 := &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.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 := &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 + }) + + t.Run("SetMessage_MarksExplicit", 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocAnnotationsUpdate404Response{} + 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 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 := &DocDownloadResponse{} + var fernTestValueName DocDownloadResponseName + + // 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 := &DocDownloadResponse{} + var fernTestValueCode DocDownloadResponseCode + + // 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 := &DocDownloadResponse{} + 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 := &DocDownloadResponse{} + 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 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 := &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.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 := &DocFormsExportDataResponse{} + var fernTestValueCode DocFormsExportDataResponseCode + + // 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 := &DocFormsExportDataResponse{} + 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 := &DocFormsExportDataResponse{} + 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 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 := &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.SetFormKind(fernTestValueFormKind) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 + }) + + t.Run("SetFields_MarksExplicit", 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculationOrder_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + var fernTestValueCalculationOrder []*DocFormsGet200ResponseCalculationOrderItem + + // Act + obj.SetCalculationOrder(fernTestValueCalculationOrder) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseCalculationOrderItem(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItem{} + 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 *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 + + // 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 := &DocFormsGet200ResponseCalculationOrderItem{} + 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 *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.GetObjectNumber() // Should return zero value + }) + + t.Run("GetFqn", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItem{} + var expected *DocFormsGet200ResponseCalculationOrderItemFqn + 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 := &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.GetFqn() // 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + 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 *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.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + 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 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 := &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.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 + }) + +} + +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) { + 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("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("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("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 *DocFormsGet200ResponseFieldsItemCheckboxActions + 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) + }) + +} + +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 + + // 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 *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("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + 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 *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 + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_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.GetOrigin() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxFlags + 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 := &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.GetFlags() // Should return zero value + }) + + t.Run("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // 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.GetAlternateName() // Should return zero value + }) + + t.Run("GetMappingName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *string + obj.MappingName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // 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.GetMappingName() // Should return zero value + }) + + t.Run("GetValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + 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) { + t.Parallel() + // 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.GetValueEntry() // Should return zero value + }) + + t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // 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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActions + 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 := &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.GetActions() // Should return zero value + }) + + t.Run("GetWidgets", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // 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.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) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemCheckboxRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemCheckboxFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemCheckbox{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemCheckboxActions + + // 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 := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + + // 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("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 TestSettersDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + 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 *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.GetNone() // Should return zero value + }) + + t.Run("GetScalar", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + 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 *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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + 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 *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.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 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) + }) + +} + +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) + }) + +} + +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 TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetRequired", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + 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 *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.GetRequired() // Should return zero value + }) + + t.Run("GetNoExport", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + 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 *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 := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + 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 *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.GetRaw() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + 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 *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.GetKind() // Should return zero value + }) + + 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 := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + 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 *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.GetFqn() // Should return zero value + }) + +} + +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 := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + 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 *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.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + 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 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 := &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.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 + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + 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 *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 + }) + + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + 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 *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 + + // 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 := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + 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 *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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + 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 := &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.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 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 := &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.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 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 := &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.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 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 := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + 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) { + 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 := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + 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 *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.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) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + 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("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) { + 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("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("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("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 *DocFormsGet200ResponseFieldsItemComboboxActions + 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 TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxRef + 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 := &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.GetRef() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetFieldObjectNumber() // Should return zero value + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected DocFormsGet200ResponseFieldsItemComboboxOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_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.GetOrigin() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxFlags + 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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("GetMappingName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *string + obj.MappingName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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 + + // 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetValueEntry() // Should return zero value + }) + + t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActions + 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetWidgets", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetWidgets() // Should return zero value + }) + + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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 + }) + + 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected bool + obj.Edit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEdit(), "getter should return the property value") + }) + + t.Run("GetEdit_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.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") + }) + + t.Run("GetOptions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *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.GetOptions() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemComboboxRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemComboboxOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemComboboxFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemComboboxActions + + // 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + + // 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("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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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("SetEdit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueEdit bool + + // Act + obj.SetEdit(fernTestValueEdit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem + + // 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 TestSettersDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + 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 *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 + }) + + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + 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 *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.GetNone() // Should return zero value + }) + + t.Run("GetScalar", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + 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 *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("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + 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 *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.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + 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 *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.GetUnsupported() // Should return zero value + }) + +} + +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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + 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 *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.GetValues() // Should return zero value + }) + +} + +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 TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + 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 *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.GetValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + 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 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("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("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("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 TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetRequired", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + 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 *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.GetRequired() // Should return zero value + }) + + t.Run("GetNoExport", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + 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 *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.GetNoExport() // Should return zero value + }) + + t.Run("GetRaw", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + 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 *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.GetRaw() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + 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 *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 + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + var expected *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + 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 := &DocFormsGet200ResponseFieldsItemComboboxRef{} + 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 *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.GetObjectNumber() // Should return zero value + }) + + t.Run("GetFqn", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + var expected *DocFormsGet200ResponseFieldsItemComboboxRefFqn + 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 := &DocFormsGet200ResponseFieldsItemComboboxRef{} + 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 *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.GetFqn() // Should return zero 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + 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 *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.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + 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 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 := &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.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 + }) + +} + +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("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("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 + + // 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 := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + 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 := &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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + 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 *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.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + 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 *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.GetUnsupported() // Should return zero value + }) + +} + +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 := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + 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 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 := &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.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 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 := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + 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 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 *DocFormsGet200ResponseFieldsItemListboxActions + 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 := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxRef + 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 := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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 + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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.GetFieldObjectNumber() // Should return zero value + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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 := &DocFormsGet200ResponseFieldsItemListbox{} + var expected DocFormsGet200ResponseFieldsItemListboxOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_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.GetOrigin() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxFlags + 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 := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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.GetAlternateName() // Should return zero value + }) + + t.Run("GetMappingName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *string + obj.MappingName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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("GetValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntry + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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.GetValueEntry() // Should return zero value + }) + + t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // 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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxActions + 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 := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetWidgets", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *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.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) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemListboxRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemListboxOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemListboxFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemListbox{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemListboxActions + + // 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 := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + + // 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("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 TestSettersDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemListboxActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemListboxActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemListboxActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemListboxActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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) { + 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("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("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("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 + }) + + t.Run("GetScalar", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + 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 := &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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + 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 := &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.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + 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 := &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.GetUnsupported() // Should return zero value + }) + +} + +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 := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + 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 *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.GetValues() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + 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 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + 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 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("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("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("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 TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + 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 *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.GetReadOnly() // Should return zero value + }) + + t.Run("GetRequired", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + 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 *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.GetRequired() // Should return zero value + }) + + t.Run("GetNoExport", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + 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 *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.GetNoExport() // Should return zero value + }) + + t.Run("GetRaw", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + 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 *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.GetRaw() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + var expected *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + 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 := &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.GetObjectNumber() // Should return zero value + }) + + t.Run("GetFqn", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + var expected *DocFormsGet200ResponseFieldsItemListboxRefFqn + 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 := &DocFormsGet200ResponseFieldsItemListboxRef{} + 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 *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.GetFqn() // Should return zero 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + 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 *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.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + 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 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + 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 + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + 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 *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.GetNone() // Should return zero value + }) + + t.Run("GetScalar", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + 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 *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.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 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 TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + 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.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 *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.GetValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + 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 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 TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + 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 *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.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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + 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 TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 := &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 := &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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 := &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 := &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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemPushbuttonActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWidgets", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + obj.SetWidgets(fernTestValueWidgets) + assert.Equal(t, fernTestValueWidgets, obj.Widgets) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonRef + 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected DocFormsGet200ResponseFieldsItemPushbuttonOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonFlags + 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *string + obj.MappingName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActions + 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemPushbuttonRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemPushbuttonOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemPushbuttonFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemPushbuttonActions + + // 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 := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + + // 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 + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + // Should not 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + var fernTestValueRaw int + obj.SetRaw(fernTestValueRaw) + assert.Equal(t, fernTestValueRaw, obj.Raw) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRef + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRef + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRef + // Should not 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + 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 + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + // Should not 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + 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 TestSettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + // Should not 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 := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + // Should not panic - getters should handle nil 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + 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 TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 := &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 := &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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 := &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 := &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 := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemRadioActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWidgets", func(t *testing.T) { + 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 := &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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioRef + 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetFieldObjectNumber() // Should return zero value + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected DocFormsGet200ResponseFieldsItemRadioOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_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.GetOrigin() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioFlags + 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetAlternateName() // Should return zero value + }) + + t.Run("GetMappingName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *string + obj.MappingName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetMappingName() // Should return zero value + }) + + t.Run("GetValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntry + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetValueEntry() // Should return zero value + }) + + t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioActions + 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetWidgets", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *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.GetWidgets() // Should return zero value + }) + + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 + + // Act & Assert + assert.Equal(t, expected, obj.GetNoToggleToOff(), "getter should return the property value") + }) + + t.Run("GetNoToggleToOff_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.GetNoToggleToOff() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemRadio{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemRadioActions + + // 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 := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem + + // 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("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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("SetRadiosInUnison_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueRadiosInUnison bool + + // Act + obj.SetRadiosInUnison(fernTestValueRadiosInUnison) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoToggleToOff_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueNoToggleToOff bool + + // Act + obj.SetNoToggleToOff(fernTestValueNoToggleToOff) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemRadioActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemRadioActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemRadioActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemRadioActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + // Should not 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 TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + 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 TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + 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 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) + 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} + 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 *DocFormsGet200ResponseFieldsItemRadioFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioFlags{} + 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 *DocFormsGet200ResponseFieldsItemRadioFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioFlags{} + 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 *DocFormsGet200ResponseFieldsItemRadioFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemRadioFlags{} + 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 *DocFormsGet200ResponseFieldsItemRadioFlags + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemRadioFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} + var expected *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + 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 := &DocFormsGet200ResponseFieldsItemRadioRef{} + 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 *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("GetFqn", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} + var expected *DocFormsGet200ResponseFieldsItemRadioRefFqn + 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 := &DocFormsGet200ResponseFieldsItemRadioRef{} + 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 *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.GetFqn() // Should return zero value + }) + +} + +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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemRadioRefFqn + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} + 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 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} + 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 + }) + +} + +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") + }) + + 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("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("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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + 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 *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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + 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 *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.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + 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 *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.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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} + 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 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} + 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 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) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + 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 TestGettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + 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 *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.GetAnnotObjectNumber() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + 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 *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.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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + 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("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 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) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemSignatureActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureRef + 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 := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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 + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected DocFormsGet200ResponseFieldsItemSignatureOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_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.GetOrigin() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureFlags + 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 := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.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") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetMappingName() // Should return zero value + }) + + t.Run("GetValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntry + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetValueEntry() // Should return zero value + }) + + t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActions + 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 := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetWidgets", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *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.GetWidgets() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemSignatureRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemSignatureOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemSignatureFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemSignatureActions + + // 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 := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + + // 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 + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 + }) + + 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("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} + 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 *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.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") + }) + + t.Run("GetValues_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} + 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 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} + 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 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) + 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) + 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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + 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 *DocFormsGet200ResponseFieldsItemSignatureFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + 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 *DocFormsGet200ResponseFieldsItemSignatureFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + 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 *DocFormsGet200ResponseFieldsItemSignatureFlags + // Should not 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 := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + 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 *DocFormsGet200ResponseFieldsItemSignatureFlags + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} + 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 *DocFormsGet200ResponseFieldsItemSignatureRef + // Should not 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") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} + 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 *DocFormsGet200ResponseFieldsItemSignatureRef + // Should not 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") + }) + + t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} + 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 *DocFormsGet200ResponseFieldsItemSignatureRef + // Should not 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 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemSignatureRefFqn + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} + 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 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} + 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 + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + 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 *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 + }) + + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + 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 *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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + 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 *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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + 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 *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("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + 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 *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.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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} + 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 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} + 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 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) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + // Should not 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 := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + // Should not panic - getters should handle nil 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + 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 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("SetActions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemTextActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + 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) + }) + + 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 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetFieldObjectNumber() // Should return zero value + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected DocFormsGet200ResponseFieldsItemTextOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_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.GetOrigin() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextFlags + 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 := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetFlags() // Should return zero value + }) + + t.Run("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetAlternateName() // Should return zero value + }) + + t.Run("GetMappingName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *string + obj.MappingName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) + + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetMappingName() // 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") + }) + + t.Run("GetValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetValueEntry() // Should return zero value + }) + + t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + obj.DefaultValueEntry = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextActions + 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 := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.GetActions() // Should return zero value + }) + + t.Run("GetWidgets", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected []*DocFormsGet200ResponseFieldsItemTextWidgetsItem + obj.Widgets = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *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.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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemTextRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemTextOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemTextFlags + + // 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("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemText{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + + // 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 := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueActions *DocFormsGet200ResponseFieldsItemTextActions + + // 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 := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem + + // 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("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 TestSettersDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemTextActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemTextActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemTextActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemTextActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemTextActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemTextActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemTextActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemTextActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemTextActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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") + }) + + 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("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("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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + 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 *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.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + 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 *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.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + 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 *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.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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} + 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 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.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} + 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 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) + 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) + 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) + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + 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 *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.GetRequired() // Should return zero value + }) + + t.Run("GetNoExport", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + 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 *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.GetNoExport() // Should return zero value + }) + + t.Run("GetRaw", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + 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 *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.GetRaw() // 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemTextFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextRef{} + 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 *DocFormsGet200ResponseFieldsItemTextRef + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextRef{} + var expected *DocFormsGet200ResponseFieldsItemTextRefObjectNumber + 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 := &DocFormsGet200ResponseFieldsItemTextRef{} + 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 *DocFormsGet200ResponseFieldsItemTextRef + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextRef{} + var expected *DocFormsGet200ResponseFieldsItemTextRefFqn + 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 := &DocFormsGet200ResponseFieldsItemTextRef{} + 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 *DocFormsGet200ResponseFieldsItemTextRef + // Should not 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 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemTextRefFqn + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} + 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 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemTextRefObjectNumber + // Should not 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 + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + 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 := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntry + // Should not 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} + 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 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} + 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 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) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemTextWidgetsItem + // Should not 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 := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemTextWidgetsItem + // Should not panic - getters should handle nil 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + 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 := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + 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 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 *DocFormsGet200ResponseFieldsItemUnknownActions + 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) + 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) + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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.GetRef() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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.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") + }) + + 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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected DocFormsGet200ResponseFieldsItemUnknownOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + 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 + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *DocFormsGet200ResponseFieldsItemUnknownFlags + 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 := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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 + }) + + t.Run("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *string + obj.AlternateName = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) + + 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 + }) + + 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("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("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("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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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.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") + }) + + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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.GetDefaultValueEntry() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActions + 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 := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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.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") + }) + + t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *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 + }) + + t.Run("GetRawValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected string + obj.RawValue = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRawValue(), "getter should return the property value") + }) + + t.Run("GetRawValue_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.GetRawValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemUnknownRef + + // 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("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemUnknownOrigin + + // 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("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemUnknownFlags + + // 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("SetAlternateName_MarksExplicit", 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") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemUnknown{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + 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 *DocFormsGet200ResponseFieldsItemUnknownActions + + // 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 TestSettersDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { + t.Run("SetKeystroke", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + obj.SetKeystroke(fernTestValueKeystroke) + assert.Equal(t, fernTestValueKeystroke, obj.Keystroke) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFormat", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + obj.SetFormat(fernTestValueFormat) + assert.Equal(t, fernTestValueFormat, obj.Format) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValidate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + obj.SetValidate(fernTestValueValidate) + assert.Equal(t, fernTestValueValidate, obj.Validate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculate", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + obj.SetCalculate(fernTestValueCalculate) + assert.Equal(t, fernTestValueCalculate, obj.Calculate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { + t.Run("GetKeystroke", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + obj.Keystroke = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeystroke(), "getter should return the property value") + }) + + t.Run("GetKeystroke_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + obj.Keystroke = nil + + // Act & Assert + assert.Nil(t, obj.GetKeystroke(), "getter should return nil when property is nil") + }) + + t.Run("GetKeystroke_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKeystroke() // Should return zero value + }) + + t.Run("GetFormat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + obj.Format = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormat(), "getter should return the property value") + }) + + t.Run("GetFormat_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + obj.Format = nil + + // Act & Assert + assert.Nil(t, obj.GetFormat(), "getter should return nil when property is nil") + }) + + t.Run("GetFormat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormat() // Should return zero value + }) + + t.Run("GetValidate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + obj.Validate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValidate(), "getter should return the property value") + }) + + t.Run("GetValidate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + obj.Validate = nil + + // Act & Assert + assert.Nil(t, obj.GetValidate(), "getter should return nil when property is nil") + }) + + t.Run("GetValidate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValidate() // Should return zero value + }) + + t.Run("GetCalculate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + obj.Calculate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculate(), "getter should return the property value") + }) + + t.Run("GetCalculate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + obj.Calculate = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculate(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActions + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { + t.Run("SetKeystroke_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueKeystroke *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + + // Act + obj.SetKeystroke(fernTestValueKeystroke) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFormat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueFormat *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + + // Act + obj.SetFormat(fernTestValueFormat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetValidate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueValidate *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + + // Act + obj.SetValidate(fernTestValueValidate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCalculate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + var fernTestValueCalculate *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + + // Act + obj.SetCalculate(fernTestValueCalculate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var expected []DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var expected DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var expected []DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var expected DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var expected []DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var expected DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { + t.Run("SetRoot", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + obj.SetRoot(fernTestValueRoot) + assert.Equal(t, fernTestValueRoot, obj.Root) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIncomplete", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueIncomplete bool + obj.SetIncomplete(fernTestValueIncomplete) + assert.Equal(t, fernTestValueIncomplete, obj.Incomplete) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarningFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueWarningFlags int + obj.SetWarningFlags(fernTestValueWarningFlags) + assert.Equal(t, fernTestValueWarningFlags, obj.WarningFlags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWarnings", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem + obj.SetWarnings(fernTestValueWarnings) + assert.Equal(t, fernTestValueWarnings, obj.Warnings) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { + t.Run("GetRoot", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var expected *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + obj.Root = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRoot(), "getter should return the property value") + }) + + t.Run("GetRoot_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj.Root = nil + + // Act & Assert + assert.Nil(t, obj.GetRoot(), "getter should return nil when property is nil") + }) + + t.Run("GetRoot_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRoot() // Should return zero value + }) + + t.Run("GetIncomplete", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var expected bool + obj.Incomplete = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIncomplete(), "getter should return the property value") + }) + + t.Run("GetIncomplete_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIncomplete() // Should return zero value + }) + + t.Run("GetWarningFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var expected int + obj.WarningFlags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarningFlags(), "getter should return the property value") + }) + + t.Run("GetWarningFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarningFlags() // Should return zero value + }) + + t.Run("GetWarnings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var expected []DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem + obj.Warnings = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWarnings(), "getter should return the property value") + }) + + t.Run("GetWarnings_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + obj.Warnings = nil + + // Act & Assert + assert.Nil(t, obj.GetWarnings(), "getter should return nil when property is nil") + }) + + t.Run("GetWarnings_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWarnings() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { + t.Run("SetRoot_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueRoot *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + + // Act + obj.SetRoot(fernTestValueRoot) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIncomplete_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueIncomplete bool + + // Act + obj.SetIncomplete(fernTestValueIncomplete) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarningFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueWarningFlags int + + // Act + obj.SetWarningFlags(fernTestValueWarningFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWarnings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + var fernTestValueWarnings []DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem + + // Act + obj.SetWarnings(fernTestValueWarnings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { + t.Run("SetType", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType + obj.SetType(fernTestValueType) + assert.Equal(t, fernTestValueType, obj.Type) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueSubtype string + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueScript *string + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNext", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueNext []any + obj.SetNext(fernTestValueNext) + assert.Equal(t, fernTestValueNext, obj.Next) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { + t.Run("GetType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var expected DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType + obj.Type = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetType(), "getter should return the property value") + }) + + t.Run("GetType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetType() // Should return zero value + }) + + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + // Should not 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("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var expected *string + 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 := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + // Should not 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("GetNext", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var expected []any + obj.Next = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNext(), "getter should return the property value") + }) + + t.Run("GetNext_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + obj.Next = nil + + // Act & Assert + assert.Nil(t, obj.GetNext(), "getter should return nil when property is nil") + }) + + t.Run("GetNext_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNext() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { + t.Run("SetType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueType DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType + + // Act + obj.SetType(fernTestValueType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueSubtype string + + // 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("SetScript_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueScript *string + + // 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("SetNext_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + var fernTestValueNext []any + + // Act + obj.SetNext(fernTestValueNext) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does 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.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) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueRequired bool + + // Act + obj.SetRequired(fernTestValueRequired) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueNoExport bool + + // Act + obj.SetNoExport(fernTestValueNoExport) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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 := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueRaw int + + // Act + obj.SetRaw(fernTestValueRaw) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + 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 *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("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + var expected *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + 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 := &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.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 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 := &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.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 + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone + 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntry + // Should not 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntry + // Should not 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") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntry + // Should not 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} + 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 := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + // Should not 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 TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} + 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 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) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} + 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 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.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("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 TestGettersDocFormsGet404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet404Response{} + var expected DocFormsGet404ResponseName + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet404Response{} + var expected DocFormsGet404ResponseCode + 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 *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.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet404Response{} + 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 *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.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet404Response{} + 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 := &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.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet404Response{} + var fernTestValueName DocFormsGet404ResponseName + + // 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 := &DocFormsGet404Response{} + var fernTestValueCode DocFormsGet404ResponseCode + + // 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 := &DocFormsGet404Response{} + 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 := &DocFormsGet404Response{} + 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 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 := &DocFormsImportData200Response{} + var expected *DocFormsImportData200ResponseMeta + 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 := &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.GetMeta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200Response{} + var fernTestValueMeta *DocFormsImportData200ResponseMeta + + // 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 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("SetCacheDelta", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + var expected []*DocFormsImportData200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAffectedPages() // Should return zero value + }) + + t.Run("GetCacheDelta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + var expected *DocFormsImportData200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetCacheDelta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta + + // 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 + }) + +} + +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("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("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + 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 *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.GetRevision() // Should return zero value + }) + + t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + 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 *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.GetWeakAnnotationState() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 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 := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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 + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetUnknown() // Should return zero value + }) + + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKnown() // Should return zero value + }) + +} + +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 := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *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.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 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("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("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + 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 := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetPreviousDocVersion() // Should return zero value + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetDocVersion() // Should return zero value + }) + + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAnnotationsVersion() // Should return zero value + }) + + t.Run("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + 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 *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.GetPages() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + 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 := &DocFormsImportData200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) + }) + + 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) + }) + +} + +func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + 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 *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("GetCache", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var expected *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + 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 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("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("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("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 TestGettersDocFormsImportData400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData400Response{} + var expected DocFormsImportData400ResponseName + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData400Response{} + var expected DocFormsImportData400ResponseCode + 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 *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.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData400Response{} + 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 *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.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData400Response{} + 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 := &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.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData400Response{} + var fernTestValueName DocFormsImportData400ResponseName + + // 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 := &DocFormsImportData400Response{} + var fernTestValueCode DocFormsImportData400ResponseCode + + // 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 := &DocFormsImportData400Response{} + 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 := &DocFormsImportData400Response{} + 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 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 := &DocFormsImportData404Response{} + var expected DocFormsImportData404ResponseName + 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 *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 + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData404Response{} + var expected DocFormsImportData404ResponseCode + 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 *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.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData404Response{} + 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 *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.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 + + // 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 := &DocFormsImportData404Response{} + 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 *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.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData404Response{} + var fernTestValueName DocFormsImportData404ResponseName + + // 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 := &DocFormsImportData404Response{} + var fernTestValueCode DocFormsImportData404ResponseCode + + // 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 := &DocFormsImportData404Response{} + 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 := &DocFormsImportData404Response{} + 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 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) + }) + +} + +func TestGettersDocFormsReset200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200Response{} + var expected *DocFormsReset200ResponseMeta + 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 := &DocFormsReset200Response{} + 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 *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.GetMeta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200Response{} + var fernTestValueMeta *DocFormsReset200ResponseMeta + + // 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 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("SetCacheDelta", func(t *testing.T) { + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + var expected []*DocFormsReset200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAffectedPages() // Should return zero value + }) + + t.Run("GetCacheDelta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + var expected *DocFormsReset200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetCacheDelta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta + + // 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 + }) + +} + +func TestSettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + 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 TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + 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 *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 + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemRevision + 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 := &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.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 TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsReset200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 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("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("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 TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + 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 := &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("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetUnknown() // Should return zero value + }) + + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKnown() // Should return zero 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) + }) + +} + +func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *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.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 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("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 := &DocFormsReset200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetPreviousDocVersion() // Should return zero value + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetDocVersion() // Should return zero value + }) + + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAnnotationsVersion() // Should return zero value + }) + + t.Run("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + 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 *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.GetPages() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // 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 + + // 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 := &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.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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 := &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.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 := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + 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 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 := &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.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 := &DocFormsReset404Response{} + var fernTestValueCode DocFormsReset404ResponseCode + + // 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 := &DocFormsReset404Response{} + 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 := &DocFormsReset404Response{} + 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 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 := &DocFormsSetValue200Response{} + var expected *DocFormsSetValue200ResponseMeta + 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 := &DocFormsSetValue200Response{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200Response{} + var fernTestValueMeta *DocFormsSetValue200ResponseMeta + + // 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 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 := &DocFormsSetValue200ResponseMeta{} + var expected []*DocFormsSetValue200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + 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("GetCacheDelta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + var expected *DocFormsSetValue200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + 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 + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsSetValue200ResponseMetaCacheDelta + + // 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 + }) + +} + +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("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("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + 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 *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.GetRevision() // Should return zero value + }) + + t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + 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 *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.GetWeakAnnotationState() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 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("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("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 TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKind() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetUnknown() // Should return zero value + }) + + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKnown() // Should return zero value + }) + +} + +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 TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *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.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 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("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 TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetPreviousDocVersion() // Should return zero value + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetDocVersion() // Should return zero value + }) + + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAnnotationsVersion() // Should return zero value + }) + + t.Run("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + 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 *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.GetPages() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + 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 := &DocFormsSetValue200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + 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 TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + 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 *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 + }) + + t.Run("GetCache", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + var expected *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + 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 := &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.GetCache() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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("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 TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + 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 *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.GetContentVersion() // Should return zero value + }) + + t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + 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 *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.GetAnnotationVersion() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + 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 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("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("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("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) + }) + +} + +func TestGettersDocFormsSetValue400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue400Response{} + var expected DocFormsSetValue400ResponseName + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue400Response{} + var expected DocFormsSetValue400ResponseCode + 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 *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.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue400Response{} + 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 *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.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue400Response{} + 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 := &DocFormsSetValue400Response{} + 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 *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.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue400Response{} + var fernTestValueName DocFormsSetValue400ResponseName + + // 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 := &DocFormsSetValue400Response{} + var fernTestValueCode DocFormsSetValue400ResponseCode + + // 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 := &DocFormsSetValue400Response{} + 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 := &DocFormsSetValue400Response{} + 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 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) + }) + + 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) + }) + + 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) + }) + + 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) + }) + +} + +func TestGettersDocFormsSetValue404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + var expected DocFormsSetValue404ResponseName + 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 *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("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + var expected DocFormsSetValue404ResponseCode + 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 *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 + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + 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 *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 := &DocFormsSetValue404Response{} + 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 := &DocFormsSetValue404Response{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + var fernTestValueName DocFormsSetValue404ResponseName + + // 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 := &DocFormsSetValue404Response{} + var fernTestValueCode DocFormsSetValue404ResponseCode + + // 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 := &DocFormsSetValue404Response{} + 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 := &DocFormsSetValue404Response{} + 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 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("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) + }) + + 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) + }) + +} + +func TestGettersDocHead404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocHead404Response{} + var expected DocHead404ResponseName + 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 *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.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocHead404Response{} + var expected DocHead404ResponseCode + 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 *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 + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocHead404Response{} + 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 *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.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocHead404Response{} + 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 := &DocHead404Response{} + 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 *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.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocHead404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocHead404Response{} + var fernTestValueName DocHead404ResponseName + + // 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 := &DocHead404Response{} + var fernTestValueCode DocHead404ResponseCode + + // 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 := &DocHead404Response{} + 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 := &DocHead404Response{} + 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 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("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("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("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 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) { + t.Parallel() + // Arrange + obj := &DocManifest404Response{} + var expected DocManifest404ResponseCode + 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 *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.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocManifest404Response{} + 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 *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.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") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // 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.GetDetails() // 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) { + t.Parallel() + // Arrange + obj := &DocManifest404Response{} + var fernTestValueCode DocManifest404ResponseCode + + // 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 := &DocManifest404Response{} + 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 := &DocManifest404Response{} + 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 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) + }) + + 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 := &DocMetadataGet200Response{} + var expected *string + obj.Title = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTitle(), "getter should return the property value") + }) + + t.Run("GetTitle_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + obj.Title = nil + + // Act & Assert + assert.Nil(t, obj.GetTitle(), "getter should return nil when property is nil") + }) + + t.Run("GetTitle_NilReceiver", 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.GetTitle() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + 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 := &DocMetadataGet200Response{} + 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 *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.GetAuthor() // 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") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + 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 *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.GetSubject() // Should return zero value + }) + + t.Run("GetKeywords", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var expected *string + obj.Keywords = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKeywords(), "getter should return the property value") + }) + + t.Run("GetKeywords_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + obj.Keywords = nil + + // Act & Assert + assert.Nil(t, obj.GetKeywords(), "getter should return nil when property is nil") + }) + + t.Run("GetKeywords_NilReceiver", 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.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") + }) + + t.Run("GetProducer_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + obj.Producer = nil + + // Act & Assert + assert.Nil(t, obj.GetProducer(), "getter should return nil when property is nil") + }) + + t.Run("GetProducer_NilReceiver", 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.GetProducer() // Should return zero value + }) + + t.Run("GetCreator", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var expected *string + obj.Creator = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreator(), "getter should return the property value") + }) + + t.Run("GetCreator_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + obj.Creator = nil + + // Act & Assert + assert.Nil(t, obj.GetCreator(), "getter should return nil when property is nil") + }) + + t.Run("GetCreator_NilReceiver", 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.GetCreator() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + 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 := &DocMetadataGet200Response{} + 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 *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.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + 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 := &DocMetadataGet200Response{} + 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 *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.GetModified() // Should return zero value + }) + + t.Run("GetTrapped", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var expected DocMetadataGet200ResponseTrapped + obj.Trapped = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTrapped(), "getter should return the property value") + }) + + t.Run("GetTrapped_NilReceiver", 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.GetTrapped() // Should return zero value + }) + + t.Run("GetCustom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var expected map[string]string + obj.Custom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCustom(), "getter should return the property value") + }) + + t.Run("GetCustom_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + obj.Custom = nil + + // Act & Assert + assert.Nil(t, obj.GetCustom(), "getter should return nil when property is nil") + }) + + t.Run("GetCustom_NilReceiver", 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 + }) + +} + +func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { + t.Run("SetTitle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueTitle *string + + // Act + obj.SetTitle(fernTestValueTitle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocMetadataGet200Response{} + 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("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + 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("SetKeywords_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueKeywords *string + + // 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("SetProducer_MarksExplicit", func(t *testing.T) { + t.Parallel() + // 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 + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + 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("SetTrapped_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueTrapped DocMetadataGet200ResponseTrapped + + // Act + obj.SetTrapped(fernTestValueTrapped) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCustom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueCustom map[string]string + + // Act + obj.SetCustom(fernTestValueCustom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocMetadataGet404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + 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 := &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 := &DocMetadataGet404Response{} + 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 := &DocMetadataGet404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocMetadataGet404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet404Response{} + var expected DocMetadataGet404ResponseName + 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 *DocMetadataGet404Response + // Should not 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 := &DocMetadataGet404Response{} + var expected DocMetadataGet404ResponseCode + 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 *DocMetadataGet404Response + // Should not 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 := &DocMetadataGet404Response{} + 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 *DocMetadataGet404Response + // Should not 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 := &DocMetadataGet404Response{} + 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 := &DocMetadataGet404Response{} + 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 *DocMetadataGet404Response + // Should not 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 TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet404Response{} + var fernTestValueName DocMetadataGet404ResponseName + + // 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 := &DocMetadataGet404Response{} + var fernTestValueCode DocMetadataGet404ResponseCode + + // 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 := &DocMetadataGet404Response{} + 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 := &DocMetadataGet404Response{} + 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 TestSettersDocPagesDelete200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocPagesDelete200Response{} + var fernTestValueMeta *DocPagesDelete200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200Response{} + var expected *DocPagesDelete200ResponseMeta + 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 := &DocPagesDelete200Response{} + 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 *DocPagesDelete200Response + // Should not 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 TestSettersMarkExplicitDocPagesDelete200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200Response{} + var fernTestValueMeta *DocPagesDelete200ResponseMeta + + // 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 TestSettersDocPagesDelete200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + 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 := &DocPagesDelete200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMeta{} + var expected []*DocPagesDelete200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMeta + // Should not 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 := &DocPagesDelete200ResponseMeta{} + var expected *DocPagesDelete200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMeta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesDelete200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta + + // 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 + }) + +} + +func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + 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 := &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 := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItem + // Should not 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 := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + // Should not 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + // Should not panic - getters should handle nil 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + // Should not 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 TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + // Should not 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 TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + 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 := &DocPagesDelete200ResponseMetaCacheDelta{} + 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 := &DocPagesDelete200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMetaCacheDelta + // Should not 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 + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMetaCacheDelta + // Should not 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("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var expected []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + 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 *DocPagesDelete200ResponseMetaCacheDelta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + 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 := &DocPagesDelete200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + 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 := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesDelete200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesDelete200ResponseMetaCacheDeltaPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) { + t.Run("SetName", func(t *testing.T) { + 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 := &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 := &DocPagesExtract400Response{} + 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 := &DocPagesExtract400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesExtract400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesExtract400Response{} + var expected DocPagesExtract400ResponseName + 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 *DocPagesExtract400Response + // Should not 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 := &DocPagesExtract400Response{} + var expected DocPagesExtract400ResponseCode + 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 *DocPagesExtract400Response + // Should not 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 := &DocPagesExtract400Response{} + 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 *DocPagesExtract400Response + // Should not 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 := &DocPagesExtract400Response{} + 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 := &DocPagesExtract400Response{} + 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 *DocPagesExtract400Response + // Should not 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 TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesExtract400Response{} + var fernTestValueName DocPagesExtract400ResponseName + + // 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 := &DocPagesExtract400Response{} + var fernTestValueCode DocPagesExtract400ResponseCode + + // 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 := &DocPagesExtract400Response{} + 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 := &DocPagesExtract400Response{} + 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 TestSettersDocPagesExtract404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + 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 := &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 := &DocPagesExtract404Response{} + 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 := &DocPagesExtract404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesExtract404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesExtract404Response{} + var expected DocPagesExtract404ResponseName + 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 *DocPagesExtract404Response + // Should not 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 := &DocPagesExtract404Response{} + var expected DocPagesExtract404ResponseCode + 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 *DocPagesExtract404Response + // Should not 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 := &DocPagesExtract404Response{} + 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 *DocPagesExtract404Response + // Should not 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 := &DocPagesExtract404Response{} + 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 := &DocPagesExtract404Response{} + 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 *DocPagesExtract404Response + // Should not 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 TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesExtract404Response{} + var fernTestValueName DocPagesExtract404ResponseName + + // 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 := &DocPagesExtract404Response{} + var fernTestValueCode DocPagesExtract404ResponseCode + + // 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 := &DocPagesExtract404Response{} + 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 := &DocPagesExtract404Response{} + 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 TestSettersDocPagesFlatten200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocPagesFlatten200Response{} + var fernTestValueMeta *DocPagesFlatten200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200Response{} + var expected *DocPagesFlatten200ResponseMeta + 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 := &DocPagesFlatten200Response{} + 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 *DocPagesFlatten200Response + // Should not 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 TestSettersMarkExplicitDocPagesFlatten200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200Response{} + var fernTestValueMeta *DocPagesFlatten200ResponseMeta + + // 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 TestSettersDocPagesFlatten200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + 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 := &DocPagesFlatten200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMeta{} + var expected []*DocPagesFlatten200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten200ResponseMeta + // Should not 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 := &DocPagesFlatten200ResponseMeta{} + var expected *DocPagesFlatten200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten200ResponseMeta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesFlatten200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta + + // 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 + }) + +} + +func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + 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 := &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 := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItem + // Should not 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + // Should not 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + // Should not panic - getters should handle nil 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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 := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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 := &DocPagesFlatten200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten200ResponseMetaCacheDelta + // Should not 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 + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten200ResponseMetaCacheDelta + // Should not 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("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var expected []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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 *DocPagesFlatten200ResponseMetaCacheDelta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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 := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + 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 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 := &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 := &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 := &DocPagesFlatten404Response{} + 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 := &DocPagesFlatten404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten404Response{} + var expected DocPagesFlatten404ResponseName + 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 *DocPagesFlatten404Response + // Should not 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 := &DocPagesFlatten404Response{} + var expected DocPagesFlatten404ResponseCode + 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 *DocPagesFlatten404Response + // Should not 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 := &DocPagesFlatten404Response{} + 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 *DocPagesFlatten404Response + // Should not 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 := &DocPagesFlatten404Response{} + 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 := &DocPagesFlatten404Response{} + 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 *DocPagesFlatten404Response + // Should not 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 TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten404Response{} + var fernTestValueName DocPagesFlatten404ResponseName + + // 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 := &DocPagesFlatten404Response{} + var fernTestValueCode DocPagesFlatten404ResponseCode + + // 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 := &DocPagesFlatten404Response{} + 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 := &DocPagesFlatten404Response{} + 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 TestSettersDocPagesInsert200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocPagesInsert200Response{} + var fernTestValueMeta *DocPagesInsert200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200Response{} + var expected *DocPagesInsert200ResponseMeta + 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 := &DocPagesInsert200Response{} + 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 *DocPagesInsert200Response + // Should not 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 TestSettersMarkExplicitDocPagesInsert200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200Response{} + var fernTestValueMeta *DocPagesInsert200ResponseMeta + + // 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 TestSettersDocPagesInsert200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + 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 := &DocPagesInsert200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMeta{} + var expected []*DocPagesInsert200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsert200ResponseMeta + // Should not 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 := &DocPagesInsert200ResponseMeta{} + var expected *DocPagesInsert200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsert200ResponseMeta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta + + // 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 + }) + +} + +func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + 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 := &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 := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItem + // Should not 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 := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + // Should not 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + // Should not panic - getters should handle nil 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + // Should not 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 TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + // Should not 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 TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + 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 := &DocPagesInsert200ResponseMetaCacheDelta{} + 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 := &DocPagesInsert200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsert200ResponseMetaCacheDelta + // Should not 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 + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsert200ResponseMetaCacheDelta + // Should not 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("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsert200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var expected []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + 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 *DocPagesInsert200ResponseMetaCacheDelta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + 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 := &DocPagesInsert200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + 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 TestSettersDocPagesInsert400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + 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 := &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 := &DocPagesInsert400Response{} + 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 := &DocPagesInsert400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert400Response{} + var expected DocPagesInsert400ResponseName + 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 *DocPagesInsert400Response + // Should not 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 := &DocPagesInsert400Response{} + var expected DocPagesInsert400ResponseCode + 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 *DocPagesInsert400Response + // Should not 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 := &DocPagesInsert400Response{} + 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 *DocPagesInsert400Response + // Should not 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 := &DocPagesInsert400Response{} + 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 := &DocPagesInsert400Response{} + 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 *DocPagesInsert400Response + // Should not 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 TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert400Response{} + var fernTestValueName DocPagesInsert400ResponseName + + // 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 := &DocPagesInsert400Response{} + var fernTestValueCode DocPagesInsert400ResponseCode + + // 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 := &DocPagesInsert400Response{} + 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 := &DocPagesInsert400Response{} + 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 TestSettersDocPagesInsert404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + 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 := &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 := &DocPagesInsert404Response{} + 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 := &DocPagesInsert404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsert404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert404Response{} + var expected DocPagesInsert404ResponseName + 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 *DocPagesInsert404Response + // Should not 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 := &DocPagesInsert404Response{} + var expected DocPagesInsert404ResponseCode + 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 *DocPagesInsert404Response + // Should not 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 := &DocPagesInsert404Response{} + 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 *DocPagesInsert404Response + // Should not 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 := &DocPagesInsert404Response{} + 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 := &DocPagesInsert404Response{} + 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 *DocPagesInsert404Response + // Should not 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 TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert404Response{} + var fernTestValueName DocPagesInsert404ResponseName + + // 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 := &DocPagesInsert404Response{} + var fernTestValueCode DocPagesInsert404ResponseCode + + // 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 := &DocPagesInsert404Response{} + 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 := &DocPagesInsert404Response{} + 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 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) + }) + +} + +func TestGettersDocPagesInsertBlank200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200Response{} + var expected *DocPagesInsertBlank200ResponseMeta + 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 := &DocPagesInsertBlank200Response{} + 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 *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.GetMeta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200Response{} + var fernTestValueMeta *DocPagesInsertBlank200ResponseMeta + + // 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 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() + // 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("GetAffectedPages_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetAffectedPages() // Should return zero value + }) + + t.Run("GetCacheDelta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + var expected *DocPagesInsertBlank200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + 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.GetCacheDelta() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta + + // 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 + }) + +} + +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 := &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.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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 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("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("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 TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 *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.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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 + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetUnknown() // Should return zero value + }) + + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *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.GetKnown() // Should return zero 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) + }) + +} + +func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *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.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 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("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 := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_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.GetPreviousDocVersion() // Should return zero value + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_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.GetDocVersion() // Should return zero value + }) + + t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_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.GetAnnotationsVersion() // Should return zero value + }) + + t.Run("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // 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.GetPages() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + 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 := &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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 := &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.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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 := &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.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 := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + 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 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 := &DocPagesInsertBlank400Response{} + var fernTestValueName DocPagesInsertBlank400ResponseName + + // 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 := &DocPagesInsertBlank400Response{} + var fernTestValueCode DocPagesInsertBlank400ResponseCode + + // 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 := &DocPagesInsertBlank400Response{} + 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 := &DocPagesInsertBlank400Response{} + 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 TestSettersDocPagesInsertBlank404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + 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 := &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 := &DocPagesInsertBlank404Response{} + 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 := &DocPagesInsertBlank404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank404Response{} + var expected DocPagesInsertBlank404ResponseName + 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 *DocPagesInsertBlank404Response + // Should not 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 := &DocPagesInsertBlank404Response{} + var expected DocPagesInsertBlank404ResponseCode + 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 *DocPagesInsertBlank404Response + // Should not 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 := &DocPagesInsertBlank404Response{} + 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 *DocPagesInsertBlank404Response + // Should not 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 := &DocPagesInsertBlank404Response{} + 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 := &DocPagesInsertBlank404Response{} + 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 *DocPagesInsertBlank404Response + // Should not 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 TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank404Response{} + var fernTestValueName DocPagesInsertBlank404ResponseName + + // 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 := &DocPagesInsertBlank404Response{} + var fernTestValueCode DocPagesInsertBlank404ResponseCode + + // 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 := &DocPagesInsertBlank404Response{} + 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 := &DocPagesInsertBlank404Response{} + 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 TestSettersDocPagesMove200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocPagesMove200Response{} + var fernTestValueMeta *DocPagesMove200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200Response{} + var expected *DocPagesMove200ResponseMeta + 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 := &DocPagesMove200Response{} + 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 *DocPagesMove200Response + // Should not 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 TestSettersMarkExplicitDocPagesMove200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200Response{} + var fernTestValueMeta *DocPagesMove200ResponseMeta + + // 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 TestSettersDocPagesMove200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + 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 := &DocPagesMove200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMeta{} + var expected []*DocPagesMove200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMeta + // Should not 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 := &DocPagesMove200ResponseMeta{} + var expected *DocPagesMove200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMeta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta + + // 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 + }) + +} + +func TestSettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + 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 := &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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemRevision + 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItem + // Should not 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesMove200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemRevision + // Should not 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 := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemRevision + // Should not panic - getters should handle nil 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 := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemRevision + // Should not 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 TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 TestSettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + // Should not 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 TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaCacheDelta{} + 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 := &DocPagesMove200ResponseMetaCacheDelta{} + 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 := &DocPagesMove200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMetaCacheDelta + // Should not 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 + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMetaCacheDelta + // Should not 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("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var expected []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + 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 *DocPagesMove200ResponseMetaCacheDelta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + 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 := &DocPagesMove200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + 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 := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesMove200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesMove200ResponseMetaCacheDeltaPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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 := &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 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) + 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 + + // 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 := &DocPagesRotate200Response{} + 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 *DocPagesRotate200Response + // Should not 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 TestSettersMarkExplicitDocPagesRotate200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) + }) + + 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) + }) + +} + +func TestGettersDocPagesRotate200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMeta{} + var expected []*DocPagesRotate200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesRotate200ResponseMeta + // Should not 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 := &DocPagesRotate200ResponseMeta{} + var expected *DocPagesRotate200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesRotate200ResponseMeta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesRotate200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesRotate200ResponseMetaCacheDelta + + // 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 + }) + +} + +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) + }) + + 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("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItem + // Should not 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItem + // Should not 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 TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 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) + }) + + 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) + }) + + 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) + }) + +} + +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 *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 + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 *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 + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 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) + }) + +} + +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + // Should not 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 TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", 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("SetPages", func(t *testing.T) { + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesRotate200ResponseMetaCacheDelta + // Should not 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 + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesRotate200ResponseMetaCacheDelta + // Should not 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("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesRotate200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var expected []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + 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 *DocPagesRotate200ResponseMetaCacheDelta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + 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 := &DocPagesRotate200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // 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.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + 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 *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 + }) + + t.Run("GetCache", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +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) + 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) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} + 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 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) + }) + + 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("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("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) + }) + +} + +func TestGettersDocPagesRotate400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate400Response{} + var expected DocPagesRotate400ResponseName + 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 *DocPagesRotate400Response + // Should not 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 := &DocPagesRotate400Response{} + var expected DocPagesRotate400ResponseCode + 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 *DocPagesRotate400Response + // Should not 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 := &DocPagesRotate400Response{} + 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 *DocPagesRotate400Response + // Should not 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 := &DocPagesRotate400Response{} + 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 := &DocPagesRotate400Response{} + 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 *DocPagesRotate400Response + // Should not 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 TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate400Response{} + var fernTestValueName DocPagesRotate400ResponseName + + // 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 := &DocPagesRotate400Response{} + var fernTestValueCode DocPagesRotate400ResponseCode + + // 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 := &DocPagesRotate400Response{} + 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 := &DocPagesRotate400Response{} + 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 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.Parallel() + // Arrange + obj := &DocPagesRotate404Response{} + var expected DocPagesRotate404ResponseCode + 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 *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 + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate404Response{} + 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 *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 + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate404Response{} + 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 := &DocPagesRotate404Response{} + 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 *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 + }) + +} + +func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate404Response{} + var fernTestValueName DocPagesRotate404ResponseName + + // 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 := &DocPagesRotate404Response{} + var fernTestValueCode DocPagesRotate404ResponseCode + + // 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 := &DocPagesRotate404Response{} + 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 := &DocPagesRotate404Response{} + 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 TestSettersDocRedactionsApply200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocRedactionsApply200Response{} + var fernTestValueMeta *DocRedactionsApply200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200Response{} + var expected *DocRedactionsApply200ResponseMeta + 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 := &DocRedactionsApply200Response{} + 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 *DocRedactionsApply200Response + // Should not 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 TestSettersMarkExplicitDocRedactionsApply200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200Response{} + var fernTestValueMeta *DocRedactionsApply200ResponseMeta + + // 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 TestSettersDocRedactionsApply200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMeta{} + var fernTestValueAffectedPages []*DocRedactionsApply200ResponseMetaAffectedPagesItem + obj.SetAffectedPages(fernTestValueAffectedPages) + assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCacheDelta", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMeta{} + var fernTestValueCacheDelta *DocRedactionsApply200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMeta{} + var expected []*DocRedactionsApply200ResponseMetaAffectedPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMeta{} + obj.AffectedPages = nil + + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) + + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocRedactionsApply200ResponseMeta + // Should not 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 := &DocRedactionsApply200ResponseMeta{} + var expected *DocRedactionsApply200ResponseMetaCacheDelta + obj.CacheDelta = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) + + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMeta{} + obj.CacheDelta = nil + + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) + + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocRedactionsApply200ResponseMeta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocRedactionsApply200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMeta{} + var fernTestValueAffectedPages []*DocRedactionsApply200ResponseMetaAffectedPagesItem + + // 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("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMeta{} + var fernTestValueCacheDelta *DocRedactionsApply200ResponseMetaCacheDelta + + // 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 + }) + +} + +func TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItem + // Should not 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItem + // Should not 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 TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + 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("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + + // 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + + // 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 TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + // Should not 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + // Should not panic - getters should handle nil 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + // Should not 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 TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not 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 TestSettersDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + // Should not 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 TestSettersMarkExplicitDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 TestSettersDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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 := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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 := &DocRedactionsApply200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + }) + + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocRedactionsApply200ResponseMetaCacheDelta + // Should not 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 + }) + + t.Run("GetDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + }) + + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocRedactionsApply200ResponseMetaCacheDelta + // Should not 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("GetAnnotationsVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocRedactionsApply200ResponseMetaCacheDelta + // Should not 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("GetPages", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + var expected []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + 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) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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 *DocRedactionsApply200ResponseMetaCacheDelta + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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 := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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("SetPages_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + + // 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") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + 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 *DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + var expected *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + 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 *DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + // Should not 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 TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + 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("SetCache_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + + // Act + obj.SetCache(fernTestValueCache) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + // Should not 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 TestSettersMarkExplicitDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + 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 := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + 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 TestSettersDocRedactionsApply400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocRedactionsApply400Response{} + var fernTestValueName DocRedactionsApply400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocRedactionsApply400Response{} + var fernTestValueCode DocRedactionsApply400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocRedactionsApply400Response{} + 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 := &DocRedactionsApply400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply400Response{} + var expected DocRedactionsApply400ResponseName + 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 *DocRedactionsApply400Response + // Should not 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 := &DocRedactionsApply400Response{} + var expected DocRedactionsApply400ResponseCode + 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 *DocRedactionsApply400Response + // Should not 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 := &DocRedactionsApply400Response{} + 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 *DocRedactionsApply400Response + // Should not 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 := &DocRedactionsApply400Response{} + 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 := &DocRedactionsApply400Response{} + 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 *DocRedactionsApply400Response + // Should not 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 TestSettersMarkExplicitDocRedactionsApply400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply400Response{} + var fernTestValueName DocRedactionsApply400ResponseName + + // 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 := &DocRedactionsApply400Response{} + var fernTestValueCode DocRedactionsApply400ResponseCode + + // 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 := &DocRedactionsApply400Response{} + 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 := &DocRedactionsApply400Response{} + 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 TestSettersDocRedactionsApply404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocRedactionsApply404Response{} + var fernTestValueName DocRedactionsApply404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocRedactionsApply404Response{} + var fernTestValueCode DocRedactionsApply404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocRedactionsApply404Response{} + 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 := &DocRedactionsApply404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRedactionsApply404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply404Response{} + var expected DocRedactionsApply404ResponseName + 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 *DocRedactionsApply404Response + // Should not 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 := &DocRedactionsApply404Response{} + var expected DocRedactionsApply404ResponseCode + 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 *DocRedactionsApply404Response + // Should not 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 := &DocRedactionsApply404Response{} + 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 *DocRedactionsApply404Response + // Should not 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 := &DocRedactionsApply404Response{} + 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 := &DocRedactionsApply404Response{} + 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 *DocRedactionsApply404Response + // Should not 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 TestSettersMarkExplicitDocRedactionsApply404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply404Response{} + var fernTestValueName DocRedactionsApply404ResponseName + + // 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 := &DocRedactionsApply404Response{} + var fernTestValueCode DocRedactionsApply404ResponseCode + + // 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 := &DocRedactionsApply404Response{} + 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 := &DocRedactionsApply404Response{} + 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 TestSettersDocRenderResponse(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocRenderResponse{} + var fernTestValueName DocRenderResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocRenderResponse{} + var fernTestValueCode DocRenderResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocRenderResponse{} + 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 := &DocRenderResponse{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocRenderResponse(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRenderResponse{} + var expected DocRenderResponseName + 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 *DocRenderResponse + // Should not 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 := &DocRenderResponse{} + var expected DocRenderResponseCode + 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 *DocRenderResponse + // Should not 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 := &DocRenderResponse{} + 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 *DocRenderResponse + // Should not 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 := &DocRenderResponse{} + 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 := &DocRenderResponse{} + 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 *DocRenderResponse + // Should not 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 TestSettersMarkExplicitDocRenderResponse(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRenderResponse{} + var fernTestValueName DocRenderResponseName + + // 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 := &DocRenderResponse{} + var fernTestValueCode DocRenderResponseCode + + // 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 := &DocRenderResponse{} + 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 := &DocRenderResponse{} + 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 TestSettersDocText404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocText404Response{} + var fernTestValueName DocText404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocText404Response{} + var fernTestValueCode DocText404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocText404Response{} + 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 := &DocText404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocText404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocText404Response{} + var expected DocText404ResponseName + 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 *DocText404Response + // Should not 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 := &DocText404Response{} + var expected DocText404ResponseCode + 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 *DocText404Response + // Should not 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 := &DocText404Response{} + 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 *DocText404Response + // Should not 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 := &DocText404Response{} + 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 := &DocText404Response{} + 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 *DocText404Response + // Should not 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 TestSettersMarkExplicitDocText404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocText404Response{} + var fernTestValueName DocText404ResponseName + + // 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 := &DocText404Response{} + var fernTestValueCode DocText404ResponseCode + + // 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 := &DocText404Response{} + 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 := &DocText404Response{} + 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 TestSettersDocumentsCommit400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsCommit400Response{} + var fernTestValueError *DocumentsCommit400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsCommit400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400Response{} + var expected *DocumentsCommit400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsCommit400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsCommit400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400Response{} + var fernTestValueError *DocumentsCommit400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsCommit400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsCommit400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsCommit400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsCommit400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400ResponseError{} + var expected string + 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 *DocumentsCommit400ResponseError + // Should not 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 := &DocumentsCommit400ResponseError{} + 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 *DocumentsCommit400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsCommit400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsCommit400ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsCommit404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsCommit404Response{} + var fernTestValueError *DocumentsCommit404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsCommit404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404Response{} + var expected *DocumentsCommit404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsCommit404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsCommit404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404Response{} + var fernTestValueError *DocumentsCommit404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsCommit404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsCommit404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsCommit404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsCommit404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404ResponseError{} + var expected string + 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 *DocumentsCommit404ResponseError + // Should not 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 := &DocumentsCommit404ResponseError{} + 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 *DocumentsCommit404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsCommit404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsCommit404ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsDelete403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsDelete403Response{} + var fernTestValueError *DocumentsDelete403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDelete403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403Response{} + var expected *DocumentsDelete403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsDelete403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsDelete403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403Response{} + var fernTestValueError *DocumentsDelete403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsDelete403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsDelete403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsDelete403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDelete403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403ResponseError{} + var expected string + 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 *DocumentsDelete403ResponseError + // Should not 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 := &DocumentsDelete403ResponseError{} + 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 *DocumentsDelete403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsDelete403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsDelete403ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsDelete404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsDelete404Response{} + var fernTestValueError *DocumentsDelete404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDelete404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404Response{} + var expected *DocumentsDelete404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsDelete404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsDelete404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404Response{} + var fernTestValueError *DocumentsDelete404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsDelete404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsDelete404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsDelete404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDelete404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404ResponseError{} + var expected string + 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 *DocumentsDelete404ResponseError + // Should not 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 := &DocumentsDelete404ResponseError{} + 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 *DocumentsDelete404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsDelete404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsDelete404ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsDownload403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsDownload403Response{} + var fernTestValueError *DocumentsDownload403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDownload403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403Response{} + var expected *DocumentsDownload403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsDownload403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsDownload403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403Response{} + var fernTestValueError *DocumentsDownload403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsDownload403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsDownload403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsDownload403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDownload403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403ResponseError{} + var expected string + 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 *DocumentsDownload403ResponseError + // Should not 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 := &DocumentsDownload403ResponseError{} + 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 *DocumentsDownload403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsDownload403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsDownload403ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsDownload404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsDownload404Response{} + var fernTestValueError *DocumentsDownload404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDownload404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404Response{} + var expected *DocumentsDownload404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsDownload404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsDownload404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404Response{} + var fernTestValueError *DocumentsDownload404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsDownload404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsDownload404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsDownload404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsDownload404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404ResponseError{} + var expected string + 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 *DocumentsDownload404ResponseError + // Should not 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 := &DocumentsDownload404ResponseError{} + 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 *DocumentsDownload404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsDownload404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsDownload404ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsGet403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsGet403Response{} + var fernTestValueError *DocumentsGet403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsGet403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403Response{} + var expected *DocumentsGet403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsGet403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsGet403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403Response{} + var fernTestValueError *DocumentsGet403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsGet403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsGet403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsGet403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsGet403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403ResponseError{} + var expected string + 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 *DocumentsGet403ResponseError + // Should not 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 := &DocumentsGet403ResponseError{} + 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 *DocumentsGet403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsGet403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsGet403ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsGet404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsGet404Response{} + var fernTestValueError *DocumentsGet404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsGet404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404Response{} + var expected *DocumentsGet404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsGet404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsGet404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404Response{} + var fernTestValueError *DocumentsGet404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsGet404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsGet404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsGet404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsGet404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404ResponseError{} + var expected string + 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 *DocumentsGet404ResponseError + // Should not 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 := &DocumentsGet404ResponseError{} + 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 *DocumentsGet404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsGet404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsGet404ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsImportFrom202Response(t *testing.T) { + t.Run("SetTag", func(t *testing.T) { + obj := &DocumentsImportFrom202Response{} + var fernTestValueTag DocumentsImportFrom202ResponseTag + obj.SetTag(fernTestValueTag) + assert.Equal(t, fernTestValueTag, obj.Tag) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocument", func(t *testing.T) { + obj := &DocumentsImportFrom202Response{} + var fernTestValueDocument *DocumentsImportFrom202ResponseDocument + obj.SetDocument(fernTestValueDocument) + assert.Equal(t, fernTestValueDocument, obj.Document) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom202Response(t *testing.T) { + t.Run("GetTag", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202Response{} + var expected DocumentsImportFrom202ResponseTag + obj.Tag = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTag(), "getter should return the property value") + }) + + t.Run("GetTag_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTag() // Should return zero value + }) + + t.Run("GetDocument", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202Response{} + var expected *DocumentsImportFrom202ResponseDocument + obj.Document = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocument(), "getter should return the property value") + }) + + t.Run("GetDocument_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202Response{} + obj.Document = nil + + // Act & Assert + assert.Nil(t, obj.GetDocument(), "getter should return nil when property is nil") + }) + + t.Run("GetDocument_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocument() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom202Response(t *testing.T) { + t.Run("SetTag_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202Response{} + var fernTestValueTag DocumentsImportFrom202ResponseTag + + // Act + obj.SetTag(fernTestValueTag) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocument_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202Response{} + var fernTestValueDocument *DocumentsImportFrom202ResponseDocument + + // Act + obj.SetDocument(fernTestValueDocument) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsImportFrom202ResponseDocument(t *testing.T) { + t.Run("SetID", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueID string + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTenantID", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueTenantID string + obj.SetTenantID(fernTestValueTenantID) + assert.Equal(t, fernTestValueTenantID, obj.TenantID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetState", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueState DocumentsImportFrom202ResponseDocumentState + obj.SetState(fernTestValueState) + assert.Equal(t, fernTestValueState, obj.State) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBaseSha", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueBaseSha *string + obj.SetBaseSha(fernTestValueBaseSha) + assert.Equal(t, fernTestValueBaseSha, obj.BaseSha) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStorageSizeBytes", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueStorageSizeBytes *float64 + obj.SetStorageSizeBytes(fernTestValueStorageSizeBytes) + assert.Equal(t, fernTestValueStorageSizeBytes, obj.StorageSizeBytes) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMetadata", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueMetadata map[string]any + obj.SetMetadata(fernTestValueMetadata) + assert.Equal(t, fernTestValueMetadata, obj.Metadata) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdempotencyKey", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueIdempotencyKey *string + obj.SetIdempotencyKey(fernTestValueIdempotencyKey) + assert.Equal(t, fernTestValueIdempotencyKey, obj.IdempotencyKey) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFailureReason", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueFailureReason *string + obj.SetFailureReason(fernTestValueFailureReason) + assert.Equal(t, fernTestValueFailureReason, obj.FailureReason) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThumbnailState", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueThumbnailState *DocumentsImportFrom202ResponseDocumentThumbnailState + obj.SetThumbnailState(fernTestValueThumbnailState) + assert.Equal(t, fernTestValueThumbnailState, obj.ThumbnailState) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThumbnailURL", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueThumbnailURL *string + obj.SetThumbnailURL(fernTestValueThumbnailURL) + assert.Equal(t, fernTestValueThumbnailURL, obj.ThumbnailURL) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedAt", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueCreatedAt float64 + obj.SetCreatedAt(fernTestValueCreatedAt) + assert.Equal(t, fernTestValueCreatedAt, obj.CreatedAt) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedAt", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueUpdatedAt float64 + obj.SetUpdatedAt(fernTestValueUpdatedAt) + assert.Equal(t, fernTestValueUpdatedAt, obj.UpdatedAt) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom202ResponseDocument(t *testing.T) { + t.Run("GetID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected string + obj.ID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") + }) + + t.Run("GetID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetID() // Should return zero value + }) + + t.Run("GetTenantID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected string + obj.TenantID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTenantID(), "getter should return the property value") + }) + + t.Run("GetTenantID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTenantID() // Should return zero value + }) + + t.Run("GetState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected DocumentsImportFrom202ResponseDocumentState + obj.State = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetState(), "getter should return the property value") + }) + + t.Run("GetState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not 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("GetBaseSha", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected *string + obj.BaseSha = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBaseSha(), "getter should return the property value") + }) + + t.Run("GetBaseSha_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.BaseSha = nil + + // Act & Assert + assert.Nil(t, obj.GetBaseSha(), "getter should return nil when property is nil") + }) + + t.Run("GetBaseSha_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBaseSha() // Should return zero value + }) + + t.Run("GetStorageSizeBytes", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected *float64 + obj.StorageSizeBytes = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStorageSizeBytes(), "getter should return the property value") + }) + + t.Run("GetStorageSizeBytes_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.StorageSizeBytes = nil + + // Act & Assert + assert.Nil(t, obj.GetStorageSizeBytes(), "getter should return nil when property is nil") + }) + + t.Run("GetStorageSizeBytes_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStorageSizeBytes() // Should return zero value + }) + + t.Run("GetMetadata", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected map[string]any + obj.Metadata = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMetadata(), "getter should return the property value") + }) + + t.Run("GetMetadata_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.Metadata = nil + + // Act & Assert + assert.Nil(t, obj.GetMetadata(), "getter should return nil when property is nil") + }) + + t.Run("GetMetadata_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMetadata() // Should return zero value + }) + + t.Run("GetIdempotencyKey", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected *string + obj.IdempotencyKey = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdempotencyKey(), "getter should return the property value") + }) + + t.Run("GetIdempotencyKey_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.IdempotencyKey = nil + + // Act & Assert + assert.Nil(t, obj.GetIdempotencyKey(), "getter should return nil when property is nil") + }) + + t.Run("GetIdempotencyKey_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdempotencyKey() // Should return zero value + }) + + t.Run("GetFailureReason", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected *string + obj.FailureReason = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFailureReason(), "getter should return the property value") + }) + + t.Run("GetFailureReason_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.FailureReason = nil + + // Act & Assert + assert.Nil(t, obj.GetFailureReason(), "getter should return nil when property is nil") + }) + + t.Run("GetFailureReason_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFailureReason() // Should return zero value + }) + + t.Run("GetThumbnailState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected *DocumentsImportFrom202ResponseDocumentThumbnailState + obj.ThumbnailState = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThumbnailState(), "getter should return the property value") + }) + + t.Run("GetThumbnailState_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.ThumbnailState = nil + + // Act & Assert + assert.Nil(t, obj.GetThumbnailState(), "getter should return nil when property is nil") + }) + + t.Run("GetThumbnailState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThumbnailState() // Should return zero value + }) + + t.Run("GetThumbnailURL", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected *string + obj.ThumbnailURL = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThumbnailURL(), "getter should return the property value") + }) + + t.Run("GetThumbnailURL_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + obj.ThumbnailURL = nil + + // Act & Assert + assert.Nil(t, obj.GetThumbnailURL(), "getter should return nil when property is nil") + }) + + t.Run("GetThumbnailURL_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThumbnailURL() // Should return zero value + }) + + t.Run("GetCreatedAt", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected float64 + obj.CreatedAt = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedAt(), "getter should return the property value") + }) + + t.Run("GetCreatedAt_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedAt() // Should return zero value + }) + + t.Run("GetUpdatedAt", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var expected float64 + obj.UpdatedAt = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedAt(), "getter should return the property value") + }) + + t.Run("GetUpdatedAt_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom202ResponseDocument + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedAt() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + 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 := &DocumentsImportFrom202ResponseDocument{} + 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 *DocumentsImportFrom202ResponseDocument + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom202ResponseDocument(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueID string + + // Act + obj.SetID(fernTestValueID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTenantID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueTenantID string + + // Act + obj.SetTenantID(fernTestValueTenantID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueState DocumentsImportFrom202ResponseDocumentState + + // 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("SetBaseSha_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueBaseSha *string + + // Act + obj.SetBaseSha(fernTestValueBaseSha) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStorageSizeBytes_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueStorageSizeBytes *float64 + + // Act + obj.SetStorageSizeBytes(fernTestValueStorageSizeBytes) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMetadata_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueMetadata map[string]any + + // Act + obj.SetMetadata(fernTestValueMetadata) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdempotencyKey_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueIdempotencyKey *string + + // Act + obj.SetIdempotencyKey(fernTestValueIdempotencyKey) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFailureReason_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueFailureReason *string + + // Act + obj.SetFailureReason(fernTestValueFailureReason) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThumbnailState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueThumbnailState *DocumentsImportFrom202ResponseDocumentThumbnailState + + // Act + obj.SetThumbnailState(fernTestValueThumbnailState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThumbnailURL_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueThumbnailURL *string + + // Act + obj.SetThumbnailURL(fernTestValueThumbnailURL) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedAt_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueCreatedAt float64 + + // Act + obj.SetCreatedAt(fernTestValueCreatedAt) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedAt_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + var fernTestValueUpdatedAt float64 + + // Act + obj.SetUpdatedAt(fernTestValueUpdatedAt) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not 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 := &DocumentsImportFrom202ResponseDocument{} + 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 + }) + +} + +func TestSettersDocumentsImportFrom400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsImportFrom400Response{} + var fernTestValueError *DocumentsImportFrom400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400Response{} + var expected *DocumentsImportFrom400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400Response{} + var fernTestValueError *DocumentsImportFrom400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsImportFrom400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsImportFrom400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsImportFrom400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400ResponseError{} + var expected string + 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 *DocumentsImportFrom400ResponseError + // Should not 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 := &DocumentsImportFrom400ResponseError{} + 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 *DocumentsImportFrom400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsImportFrom400ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsImportFrom403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsImportFrom403Response{} + var fernTestValueError *DocumentsImportFrom403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403Response{} + var expected *DocumentsImportFrom403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403Response{} + var fernTestValueError *DocumentsImportFrom403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsImportFrom403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsImportFrom403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsImportFrom403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403ResponseError{} + var expected string + 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 *DocumentsImportFrom403ResponseError + // Should not 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 := &DocumentsImportFrom403ResponseError{} + 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 *DocumentsImportFrom403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsImportFrom403ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsImportFrom502Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsImportFrom502Response{} + var fernTestValueError *DocumentsImportFrom502ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom502Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502Response{} + var expected *DocumentsImportFrom502ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsImportFrom502Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom502Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502Response{} + var fernTestValueError *DocumentsImportFrom502ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsImportFrom502ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsImportFrom502ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsImportFrom502ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsImportFrom502ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502ResponseError{} + var expected string + 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 *DocumentsImportFrom502ResponseError + // Should not 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 := &DocumentsImportFrom502ResponseError{} + 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 *DocumentsImportFrom502ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsImportFrom502ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsImportFrom502ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsInit400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsInit400Response{} + var fernTestValueError *DocumentsInit400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsInit400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400Response{} + var expected *DocumentsInit400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsInit400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsInit400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400Response{} + var fernTestValueError *DocumentsInit400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsInit400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsInit400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsInit400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsInit400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400ResponseError{} + var expected string + 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 *DocumentsInit400ResponseError + // Should not 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 := &DocumentsInit400ResponseError{} + 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 *DocumentsInit400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsInit400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsInit400ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsList400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsList400Response{} + var fernTestValueError *DocumentsList400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsList400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400Response{} + var expected *DocumentsList400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsList400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsList400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400Response{} + var fernTestValueError *DocumentsList400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsList400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsList400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsList400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsList400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400ResponseError{} + var expected string + 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 *DocumentsList400ResponseError + // Should not 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 := &DocumentsList400ResponseError{} + 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 *DocumentsList400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsList400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsList400ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsThumbnailResponse(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsThumbnailResponse{} + var fernTestValueError *DocumentsThumbnailResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsThumbnailResponse(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponse{} + var expected *DocumentsThumbnailResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponse{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsThumbnailResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsThumbnailResponse(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponse{} + var fernTestValueError *DocumentsThumbnailResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsThumbnailResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsThumbnailResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsThumbnailResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetState", func(t *testing.T) { + obj := &DocumentsThumbnailResponseError{} + var fernTestValueState string + obj.SetState(fernTestValueState) + assert.Equal(t, fernTestValueState, obj.State) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsThumbnailResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponseError{} + var expected string + 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 *DocumentsThumbnailResponseError + // Should not 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 := &DocumentsThumbnailResponseError{} + 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 *DocumentsThumbnailResponseError + // Should not 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("GetState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponseError{} + var expected string + obj.State = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetState(), "getter should return the property value") + }) + + t.Run("GetState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsThumbnailResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsThumbnailResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsThumbnailResponseError{} + 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("SetState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponseError{} + 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 + }) + +} + +func TestSettersDocumentsUploadProxy400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsUploadProxy400Response{} + var fernTestValueError *DocumentsUploadProxy400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsUploadProxy400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400Response{} + var expected *DocumentsUploadProxy400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsUploadProxy400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsUploadProxy400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400Response{} + var fernTestValueError *DocumentsUploadProxy400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsUploadProxy400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsUploadProxy400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsUploadProxy400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsUploadProxy400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400ResponseError{} + var expected string + 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 *DocumentsUploadProxy400ResponseError + // Should not 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 := &DocumentsUploadProxy400ResponseError{} + 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 *DocumentsUploadProxy400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsUploadProxy400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsUploadProxy400ResponseError{} + 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 + }) + +} + +func TestSettersDocumentsUploadProxy409Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &DocumentsUploadProxy409Response{} + var fernTestValueError *DocumentsUploadProxy409ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsUploadProxy409Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409Response{} + var expected *DocumentsUploadProxy409ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocumentsUploadProxy409Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocumentsUploadProxy409Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409Response{} + var fernTestValueError *DocumentsUploadProxy409ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocumentsUploadProxy409ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &DocumentsUploadProxy409ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocumentsUploadProxy409ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocumentsUploadProxy409ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409ResponseError{} + var expected string + 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 *DocumentsUploadProxy409ResponseError + // Should not 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 := &DocumentsUploadProxy409ResponseError{} + 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 *DocumentsUploadProxy409ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitDocumentsUploadProxy409ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409ResponseError{} + var fernTestValueCode string + + // 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 := &DocumentsUploadProxy409ResponseError{} + 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 + }) + +} + +func TestSettersEngineErrorPayload(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &EngineErrorPayload{} + var fernTestValueName EngineErrorPayloadName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &EngineErrorPayload{} + var fernTestValueCode EngineErrorPayloadCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &EngineErrorPayload{} + 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 := &EngineErrorPayload{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersEngineErrorPayload(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &EngineErrorPayload{} + var expected EngineErrorPayloadName + 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 *EngineErrorPayload + // Should not 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 := &EngineErrorPayload{} + var expected EngineErrorPayloadCode + 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 *EngineErrorPayload + // Should not 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 := &EngineErrorPayload{} + 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 *EngineErrorPayload + // Should not 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 := &EngineErrorPayload{} + 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 := &EngineErrorPayload{} + 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 *EngineErrorPayload + // Should not 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 TestSettersMarkExplicitEngineErrorPayload(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &EngineErrorPayload{} + var fernTestValueName EngineErrorPayloadName + + // 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 := &EngineErrorPayload{} + var fernTestValueCode EngineErrorPayloadCode + + // 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 := &EngineErrorPayload{} + 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 := &EngineErrorPayload{} + 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 TestSettersSharesCreate400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesCreate400Response{} + var fernTestValueError *SharesCreate400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesCreate400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400Response{} + var expected *SharesCreate400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesCreate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesCreate400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400Response{} + var fernTestValueError *SharesCreate400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesCreate400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesCreate400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesCreate400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesCreate400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400ResponseError{} + var expected string + 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 *SharesCreate400ResponseError + // Should not 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 := &SharesCreate400ResponseError{} + 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 *SharesCreate400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesCreate400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400ResponseError{} + var fernTestValueCode string + + // 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 := &SharesCreate400ResponseError{} + 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 + }) + +} + +func TestSettersSharesCreate403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesCreate403Response{} + var fernTestValueError *SharesCreate403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesCreate403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403Response{} + var expected *SharesCreate403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesCreate403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesCreate403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403Response{} + var fernTestValueError *SharesCreate403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesCreate403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesCreate403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesCreate403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesCreate403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403ResponseError{} + var expected string + 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 *SharesCreate403ResponseError + // Should not 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 := &SharesCreate403ResponseError{} + 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 *SharesCreate403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesCreate403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403ResponseError{} + var fernTestValueCode string + + // 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 := &SharesCreate403ResponseError{} + 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 + }) + +} + +func TestSettersSharesCreate404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesCreate404Response{} + var fernTestValueError *SharesCreate404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesCreate404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404Response{} + var expected *SharesCreate404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesCreate404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesCreate404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404Response{} + var fernTestValueError *SharesCreate404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesCreate404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesCreate404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesCreate404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesCreate404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404ResponseError{} + var expected string + 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 *SharesCreate404ResponseError + // Should not 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 := &SharesCreate404ResponseError{} + 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 *SharesCreate404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesCreate404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404ResponseError{} + var fernTestValueCode string + + // 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 := &SharesCreate404ResponseError{} + 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 + }) + +} + +func TestSettersSharesDeleteResponse(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesDeleteResponse{} + var fernTestValueError *SharesDeleteResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesDeleteResponse(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponse{} + var expected *SharesDeleteResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponse{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesDeleteResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesDeleteResponse(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponse{} + var fernTestValueError *SharesDeleteResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesDeleteResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesDeleteResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesDeleteResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesDeleteResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponseError{} + var expected string + 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 *SharesDeleteResponseError + // Should not 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 := &SharesDeleteResponseError{} + 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 *SharesDeleteResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesDeleteResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponseError{} + var fernTestValueCode string + + // 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 := &SharesDeleteResponseError{} + 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 + }) + +} + +func TestSettersSharesExchange400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesExchange400Response{} + var fernTestValueError *SharesExchange400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400Response{} + var expected *SharesExchange400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesExchange400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesExchange400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400Response{} + var fernTestValueError *SharesExchange400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesExchange400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesExchange400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesExchange400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400ResponseError{} + var expected string + 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 *SharesExchange400ResponseError + // Should not 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 := &SharesExchange400ResponseError{} + 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 *SharesExchange400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesExchange400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400ResponseError{} + var fernTestValueCode string + + // 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 := &SharesExchange400ResponseError{} + 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 + }) + +} + +func TestSettersSharesExchange403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesExchange403Response{} + var fernTestValueError *SharesExchange403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403Response{} + var expected *SharesExchange403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesExchange403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesExchange403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403Response{} + var fernTestValueError *SharesExchange403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesExchange403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesExchange403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesExchange403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403ResponseError{} + var expected string + 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 *SharesExchange403ResponseError + // Should not 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 := &SharesExchange403ResponseError{} + 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 *SharesExchange403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesExchange403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403ResponseError{} + var fernTestValueCode string + + // 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 := &SharesExchange403ResponseError{} + 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 + }) + +} + +func TestSettersSharesExchange404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesExchange404Response{} + var fernTestValueError *SharesExchange404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404Response{} + var expected *SharesExchange404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesExchange404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesExchange404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404Response{} + var fernTestValueError *SharesExchange404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesExchange404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesExchange404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesExchange404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404ResponseError{} + var expected string + 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 *SharesExchange404ResponseError + // Should not 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 := &SharesExchange404ResponseError{} + 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 *SharesExchange404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesExchange404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404ResponseError{} + var fernTestValueCode string + + // 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 := &SharesExchange404ResponseError{} + 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 + }) + +} + +func TestSettersSharesExchange410Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesExchange410Response{} + var fernTestValueError *SharesExchange410ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange410Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410Response{} + var expected *SharesExchange410ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesExchange410Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesExchange410Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410Response{} + var fernTestValueError *SharesExchange410ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesExchange410ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesExchange410ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesExchange410ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange410ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410ResponseError{} + var expected string + 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 *SharesExchange410ResponseError + // Should not 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 := &SharesExchange410ResponseError{} + 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 *SharesExchange410ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesExchange410ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410ResponseError{} + var fernTestValueCode string + + // 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 := &SharesExchange410ResponseError{} + 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 + }) + +} + +func TestSettersSharesExchange422Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesExchange422Response{} + var fernTestValueError *SharesExchange422ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange422Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422Response{} + var expected *SharesExchange422ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesExchange422Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesExchange422Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422Response{} + var fernTestValueError *SharesExchange422ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesExchange422ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesExchange422ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesExchange422ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesExchange422ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422ResponseError{} + var expected string + 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 *SharesExchange422ResponseError + // Should not 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 := &SharesExchange422ResponseError{} + 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 *SharesExchange422ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesExchange422ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422ResponseError{} + var fernTestValueCode string + + // 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 := &SharesExchange422ResponseError{} + 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 + }) + +} + +func TestSettersSharesGet404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesGet404Response{} + var fernTestValueError *SharesGet404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesGet404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404Response{} + var expected *SharesGet404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesGet404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesGet404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404Response{} + var fernTestValueError *SharesGet404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesGet404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesGet404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesGet404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesGet404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404ResponseError{} + var expected string + 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 *SharesGet404ResponseError + // Should not 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 := &SharesGet404ResponseError{} + 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 *SharesGet404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesGet404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404ResponseError{} + var fernTestValueCode string + + // 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 := &SharesGet404ResponseError{} + 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 + }) + +} + +func TestSettersSharesList400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesList400Response{} + var fernTestValueError *SharesList400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesList400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400Response{} + var expected *SharesList400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesList400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesList400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400Response{} + var fernTestValueError *SharesList400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesList400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesList400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesList400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesList400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400ResponseError{} + var expected string + 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 *SharesList400ResponseError + // Should not 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 := &SharesList400ResponseError{} + 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 *SharesList400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesList400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400ResponseError{} + var fernTestValueCode string + + // 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 := &SharesList400ResponseError{} + 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 + }) + +} + +func TestSettersSharesUpdate400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesUpdate400Response{} + var fernTestValueError *SharesUpdate400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesUpdate400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400Response{} + var expected *SharesUpdate400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesUpdate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesUpdate400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400Response{} + var fernTestValueError *SharesUpdate400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesUpdate400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesUpdate400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesUpdate400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesUpdate400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400ResponseError{} + var expected string + 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 *SharesUpdate400ResponseError + // Should not 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 := &SharesUpdate400ResponseError{} + 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 *SharesUpdate400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesUpdate400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400ResponseError{} + var fernTestValueCode string + + // 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 := &SharesUpdate400ResponseError{} + 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 + }) + +} + +func TestSettersSharesUpdate404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &SharesUpdate404Response{} + var fernTestValueError *SharesUpdate404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesUpdate404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404Response{} + var expected *SharesUpdate404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *SharesUpdate404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitSharesUpdate404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404Response{} + var fernTestValueError *SharesUpdate404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersSharesUpdate404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &SharesUpdate404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &SharesUpdate404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersSharesUpdate404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404ResponseError{} + var expected string + 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 *SharesUpdate404ResponseError + // Should not 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 := &SharesUpdate404ResponseError{} + 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 *SharesUpdate404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitSharesUpdate404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404ResponseError{} + var fernTestValueCode string + + // 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 := &SharesUpdate404ResponseError{} + 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 + }) + +} + +func TestSettersTenantsCreate400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsCreate400Response{} + var fernTestValueError *TenantsCreate400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsCreate400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400Response{} + var expected *TenantsCreate400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsCreate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsCreate400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400Response{} + var fernTestValueError *TenantsCreate400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsCreate400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsCreate400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsCreate400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsCreate400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400ResponseError{} + var expected string + 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 *TenantsCreate400ResponseError + // Should not 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 := &TenantsCreate400ResponseError{} + 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 *TenantsCreate400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsCreate400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400ResponseError{} + var fernTestValueCode string + + // 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 := &TenantsCreate400ResponseError{} + 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 + }) + +} + +func TestSettersTenantsDeleteResponse(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsDeleteResponse{} + var fernTestValueError *TenantsDeleteResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsDeleteResponse(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponse{} + var expected *TenantsDeleteResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponse{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsDeleteResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsDeleteResponse(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponse{} + var fernTestValueError *TenantsDeleteResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsDeleteResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsDeleteResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsDeleteResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsDeleteResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponseError{} + var expected string + 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 *TenantsDeleteResponseError + // Should not 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 := &TenantsDeleteResponseError{} + 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 *TenantsDeleteResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsDeleteResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponseError{} + var fernTestValueCode string + + // 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 := &TenantsDeleteResponseError{} + 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 + }) + +} + +func TestSettersTenantsGet404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsGet404Response{} + var fernTestValueError *TenantsGet404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsGet404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404Response{} + var expected *TenantsGet404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsGet404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsGet404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404Response{} + var fernTestValueError *TenantsGet404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsGet404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsGet404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsGet404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsGet404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404ResponseError{} + var expected string + 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 *TenantsGet404ResponseError + // Should not 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 := &TenantsGet404ResponseError{} + 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 *TenantsGet404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsGet404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404ResponseError{} + var fernTestValueCode string + + // 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 := &TenantsGet404ResponseError{} + 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 + }) + +} + +func TestSettersTenantsList400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsList400Response{} + var fernTestValueError *TenantsList400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsList400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400Response{} + var expected *TenantsList400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsList400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsList400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400Response{} + var fernTestValueError *TenantsList400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsList400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsList400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsList400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsList400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400ResponseError{} + var expected string + 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 *TenantsList400ResponseError + // Should not 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 := &TenantsList400ResponseError{} + 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 *TenantsList400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsList400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400ResponseError{} + var fernTestValueCode string + + // 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 := &TenantsList400ResponseError{} + 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 + }) + +} + +func TestSettersTenantsResumeResponse(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsResumeResponse{} + var fernTestValueError *TenantsResumeResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsResumeResponse(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponse{} + var expected *TenantsResumeResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponse{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsResumeResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsResumeResponse(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponse{} + var fernTestValueError *TenantsResumeResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsResumeResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsResumeResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsResumeResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsResumeResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponseError{} + var expected string + 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 *TenantsResumeResponseError + // Should not 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 := &TenantsResumeResponseError{} + 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 *TenantsResumeResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsResumeResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponseError{} + var fernTestValueCode string + + // 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 := &TenantsResumeResponseError{} + 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 + }) + +} + +func TestSettersTenantsSuspendResponse(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsSuspendResponse{} + var fernTestValueError *TenantsSuspendResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsSuspendResponse(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponse{} + var expected *TenantsSuspendResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponse{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsSuspendResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsSuspendResponse(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponse{} + var fernTestValueError *TenantsSuspendResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsSuspendResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsSuspendResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsSuspendResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsSuspendResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponseError{} + var expected string + 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 *TenantsSuspendResponseError + // Should not 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 := &TenantsSuspendResponseError{} + 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 *TenantsSuspendResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsSuspendResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponseError{} + var fernTestValueCode string + + // 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 := &TenantsSuspendResponseError{} + 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 + }) + +} + +func TestSettersTenantsUsage400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsUsage400Response{} + var fernTestValueError *TenantsUsage400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsUsage400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400Response{} + var expected *TenantsUsage400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsUsage400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsUsage400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400Response{} + var fernTestValueError *TenantsUsage400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsUsage400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsUsage400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsUsage400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsUsage400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400ResponseError{} + var expected string + 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 *TenantsUsage400ResponseError + // Should not 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 := &TenantsUsage400ResponseError{} + 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 *TenantsUsage400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsUsage400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400ResponseError{} + var fernTestValueCode string + + // 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 := &TenantsUsage400ResponseError{} + 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 + }) + +} + +func TestSettersTenantsUsage404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TenantsUsage404Response{} + var fernTestValueError *TenantsUsage404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsUsage404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404Response{} + var expected *TenantsUsage404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TenantsUsage404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTenantsUsage404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404Response{} + var fernTestValueError *TenantsUsage404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTenantsUsage404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TenantsUsage404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TenantsUsage404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTenantsUsage404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404ResponseError{} + var expected string + 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 *TenantsUsage404ResponseError + // Should not 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 := &TenantsUsage404ResponseError{} + 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 *TenantsUsage404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTenantsUsage404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404ResponseError{} + var fernTestValueCode string + + // 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 := &TenantsUsage404ResponseError{} + 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 + }) + +} + +func TestSettersTokensIssue400Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TokensIssue400Response{} + var fernTestValueError *TokensIssue400ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensIssue400Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400Response{} + var expected *TokensIssue400ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TokensIssue400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTokensIssue400Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400Response{} + var fernTestValueError *TokensIssue400ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTokensIssue400ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TokensIssue400ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TokensIssue400ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensIssue400ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400ResponseError{} + var expected string + 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 *TokensIssue400ResponseError + // Should not 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 := &TokensIssue400ResponseError{} + 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 *TokensIssue400ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTokensIssue400ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400ResponseError{} + var fernTestValueCode string + + // 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 := &TokensIssue400ResponseError{} + 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 + }) + +} + +func TestSettersTokensIssue403Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TokensIssue403Response{} + var fernTestValueError *TokensIssue403ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensIssue403Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403Response{} + var expected *TokensIssue403ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TokensIssue403Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTokensIssue403Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403Response{} + var fernTestValueError *TokensIssue403ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTokensIssue403ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TokensIssue403ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TokensIssue403ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensIssue403ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403ResponseError{} + var expected string + 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 *TokensIssue403ResponseError + // Should not 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 := &TokensIssue403ResponseError{} + 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 *TokensIssue403ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTokensIssue403ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403ResponseError{} + var fernTestValueCode string + + // 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 := &TokensIssue403ResponseError{} + 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 + }) + +} + +func TestSettersTokensIssue404Response(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TokensIssue404Response{} + var fernTestValueError *TokensIssue404ResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensIssue404Response(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404Response{} + var expected *TokensIssue404ResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404Response{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TokensIssue404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTokensIssue404Response(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404Response{} + var fernTestValueError *TokensIssue404ResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTokensIssue404ResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TokensIssue404ResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TokensIssue404ResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensIssue404ResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404ResponseError{} + var expected string + 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 *TokensIssue404ResponseError + // Should not 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 := &TokensIssue404ResponseError{} + 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 *TokensIssue404ResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTokensIssue404ResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404ResponseError{} + var fernTestValueCode string + + // 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 := &TokensIssue404ResponseError{} + 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 + }) + +} + +func TestSettersTokensRevokeResponse(t *testing.T) { + t.Run("SetError", func(t *testing.T) { + obj := &TokensRevokeResponse{} + var fernTestValueError *TokensRevokeResponseError + obj.SetError(fernTestValueError) + assert.Equal(t, fernTestValueError, obj.Error) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensRevokeResponse(t *testing.T) { + t.Run("GetError", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponse{} + var expected *TokensRevokeResponseError + obj.Error = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetError(), "getter should return the property value") + }) + + t.Run("GetError_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponse{} + obj.Error = nil + + // Act & Assert + assert.Nil(t, obj.GetError(), "getter should return nil when property is nil") + }) + + t.Run("GetError_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *TokensRevokeResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetError() // Should return zero value + }) + +} + +func TestSettersMarkExplicitTokensRevokeResponse(t *testing.T) { + t.Run("SetError_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponse{} + var fernTestValueError *TokensRevokeResponseError + + // Act + obj.SetError(fernTestValueError) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersTokensRevokeResponseError(t *testing.T) { + t.Run("SetCode", func(t *testing.T) { + obj := &TokensRevokeResponseError{} + var fernTestValueCode string + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &TokensRevokeResponseError{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersTokensRevokeResponseError(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponseError{} + var expected string + 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 *TokensRevokeResponseError + // Should not 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 := &TokensRevokeResponseError{} + 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 *TokensRevokeResponseError + // Should not 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 + }) + +} + +func TestSettersMarkExplicitTokensRevokeResponseError(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponseError{} + var fernTestValueCode string + + // 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 := &TokensRevokeResponseError{} + 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 + }) + +} + +func TestJSONMarshalingAdminErrorPayload(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &AdminErrorPayload{} + + // 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 AdminErrorPayload + 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 AdminErrorPayload + 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 AdminErrorPayload + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingAdminErrorPayloadError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &AdminErrorPayloadError{} + + // 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 AdminErrorPayloadError + 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 AdminErrorPayloadError + 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 AdminErrorPayloadError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200Response{} + + // 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 DocAnnotationsCreate200Response + 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 DocAnnotationsCreate200Response + 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 DocAnnotationsCreate200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMeta{} + + // 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 DocAnnotationsCreate200ResponseMeta + 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 DocAnnotationsCreate200ResponseMeta + 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 DocAnnotationsCreate200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItem{} + + // 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItem + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItem + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + + // 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 DocAnnotationsCreate200ResponseMetaCacheDelta + 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 DocAnnotationsCreate200ResponseMetaCacheDelta + 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 DocAnnotationsCreate200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem + 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 DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem + 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 DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache + 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 DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache + 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 DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate400Response{} + + // 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 DocAnnotationsCreate400Response + 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 DocAnnotationsCreate400Response + 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 DocAnnotationsCreate400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsCreate404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsCreate404Response{} + + // 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 DocAnnotationsCreate404Response + 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 DocAnnotationsCreate404Response + 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 DocAnnotationsCreate404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200Response{} + + // 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 DocAnnotationsDelete200Response + 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 DocAnnotationsDelete200Response + 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 DocAnnotationsDelete200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMeta{} + + // 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 DocAnnotationsDelete200ResponseMeta + 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 DocAnnotationsDelete200ResponseMeta + 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 DocAnnotationsDelete200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItem{} + + // 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItem + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItem + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + + // 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 DocAnnotationsDelete200ResponseMetaCacheDelta + 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 DocAnnotationsDelete200ResponseMetaCacheDelta + 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 DocAnnotationsDelete200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem + 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 DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem + 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 DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache + 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 DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache + 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 DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsDelete404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsDelete404Response{} + + // 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 DocAnnotationsDelete404Response + 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 DocAnnotationsDelete404Response + 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 DocAnnotationsDelete404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200Response{} + + // 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 DocAnnotationsList200Response + 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 DocAnnotationsList200Response + 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 DocAnnotationsList200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaret + 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 DocAnnotationsList200ResponseAnnotationsItemCaret + 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 DocAnnotationsList200ResponseAnnotationsItemCaret + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActions + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActions + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretColor + 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 DocAnnotationsList200ResponseAnnotationsItemCaretColor + 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 DocAnnotationsList200ResponseAnnotationsItemCaretColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretFlags + 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 DocAnnotationsList200ResponseAnnotationsItemCaretFlags + 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 DocAnnotationsList200ResponseAnnotationsItemCaretFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRect + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRect + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircle + 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 DocAnnotationsList200ResponseAnnotationsItemCircle + 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 DocAnnotationsList200ResponseAnnotationsItemCircle + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActions + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActions + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleColor + 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 DocAnnotationsList200ResponseAnnotationsItemCircleColor + 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 DocAnnotationsList200ResponseAnnotationsItemCircleColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleFlags + 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 DocAnnotationsList200ResponseAnnotationsItemCircleFlags + 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 DocAnnotationsList200ResponseAnnotationsItemCircleFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRect + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRect + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachment + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachment + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachment + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeText + 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 DocAnnotationsList200ResponseAnnotationsItemFreeText + 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 DocAnnotationsList200ResponseAnnotationsItemFreeText + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActions + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActions + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextColor + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextColor + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRect + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRect + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlight + 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 DocAnnotationsList200ResponseAnnotationsItemHighlight + 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 DocAnnotationsList200ResponseAnnotationsItemHighlight + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActions + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActions + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightColor + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightColor + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightFlags + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightFlags + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRect + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRect + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInk + 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 DocAnnotationsList200ResponseAnnotationsItemInk + 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 DocAnnotationsList200ResponseAnnotationsItemInk + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActions + 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 DocAnnotationsList200ResponseAnnotationsItemInkActions + 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 DocAnnotationsList200ResponseAnnotationsItemInkActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkColor + 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 DocAnnotationsList200ResponseAnnotationsItemInkColor + 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 DocAnnotationsList200ResponseAnnotationsItemInkColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkFlags + 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 DocAnnotationsList200ResponseAnnotationsItemInkFlags + 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 DocAnnotationsList200ResponseAnnotationsItemInkFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem + 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 DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem + 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 DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkRect + 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 DocAnnotationsList200ResponseAnnotationsItemInkRect + 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 DocAnnotationsList200ResponseAnnotationsItemInkRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLine + 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 DocAnnotationsList200ResponseAnnotationsItemLine + 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 DocAnnotationsList200ResponseAnnotationsItemLine + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActions + 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 DocAnnotationsList200ResponseAnnotationsItemLineActions + 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 DocAnnotationsList200ResponseAnnotationsItemLineActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineColor + 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 DocAnnotationsList200ResponseAnnotationsItemLineColor + 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 DocAnnotationsList200ResponseAnnotationsItemLineColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineFlags + 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 DocAnnotationsList200ResponseAnnotationsItemLineFlags + 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 DocAnnotationsList200ResponseAnnotationsItemLineFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + 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 DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + 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 DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineRect + 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 DocAnnotationsList200ResponseAnnotationsItemLineRect + 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 DocAnnotationsList200ResponseAnnotationsItemLineRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLink + 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 DocAnnotationsList200ResponseAnnotationsItemLink + 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 DocAnnotationsList200ResponseAnnotationsItemLink + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActions + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActions + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkFlags + 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 DocAnnotationsList200ResponseAnnotationsItemLinkFlags + 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 DocAnnotationsList200ResponseAnnotationsItemLinkFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRect + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRect + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygon + 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 DocAnnotationsList200ResponseAnnotationsItemPolygon + 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 DocAnnotationsList200ResponseAnnotationsItemPolygon + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActions + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActions + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRect + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRect + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + 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 DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolyline + 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 DocAnnotationsList200ResponseAnnotationsItemPolyline + 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 DocAnnotationsList200ResponseAnnotationsItemPolyline + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActions + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActions + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + 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() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRect + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRect + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + 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 DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedact + 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 DocAnnotationsList200ResponseAnnotationsItemRedact + 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 DocAnnotationsList200ResponseAnnotationsItemRedact + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActions + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActions + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactColor + 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 DocAnnotationsList200ResponseAnnotationsItemRedactColor + 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 DocAnnotationsList200ResponseAnnotationsItemRedactColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactFlags + 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 DocAnnotationsList200ResponseAnnotationsItemRedactFlags + 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 DocAnnotationsList200ResponseAnnotationsItemRedactFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + 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 DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + 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 DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRect + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRect + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquare + 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 DocAnnotationsList200ResponseAnnotationsItemSquare + 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 DocAnnotationsList200ResponseAnnotationsItemSquare + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActions + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActions + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareColor + 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 DocAnnotationsList200ResponseAnnotationsItemSquareColor + 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 DocAnnotationsList200ResponseAnnotationsItemSquareColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareFlags + 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 DocAnnotationsList200ResponseAnnotationsItemSquareFlags + 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 DocAnnotationsList200ResponseAnnotationsItemSquareFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRect + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRect + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquiggly + 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 DocAnnotationsList200ResponseAnnotationsItemSquiggly + 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 DocAnnotationsList200ResponseAnnotationsItemSquiggly + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActions + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActions + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStamp + 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 DocAnnotationsList200ResponseAnnotationsItemStamp + 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 DocAnnotationsList200ResponseAnnotationsItemStamp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActions + 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 DocAnnotationsList200ResponseAnnotationsItemStampActions + 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 DocAnnotationsList200ResponseAnnotationsItemStampActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampFlags + 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 DocAnnotationsList200ResponseAnnotationsItemStampFlags + 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 DocAnnotationsList200ResponseAnnotationsItemStampFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampRect + 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 DocAnnotationsList200ResponseAnnotationsItemStampRect + 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 DocAnnotationsList200ResponseAnnotationsItemStampRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + 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 DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeout + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeout + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeout + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemText + 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 DocAnnotationsList200ResponseAnnotationsItemText + 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 DocAnnotationsList200ResponseAnnotationsItemText + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActions + 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 DocAnnotationsList200ResponseAnnotationsItemTextActions + 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 DocAnnotationsList200ResponseAnnotationsItemTextActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextColor + 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 DocAnnotationsList200ResponseAnnotationsItemTextColor + 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 DocAnnotationsList200ResponseAnnotationsItemTextColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextFlags + 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 DocAnnotationsList200ResponseAnnotationsItemTextFlags + 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 DocAnnotationsList200ResponseAnnotationsItemTextFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextRect + 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 DocAnnotationsList200ResponseAnnotationsItemTextRect + 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 DocAnnotationsList200ResponseAnnotationsItemTextRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderline + 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 DocAnnotationsList200ResponseAnnotationsItemUnderline + 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 DocAnnotationsList200ResponseAnnotationsItemUnderline + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActions + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActions + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupported + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupported + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidget + 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 DocAnnotationsList200ResponseAnnotationsItemWidget + 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 DocAnnotationsList200ResponseAnnotationsItemWidget + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActions{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActions + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActions + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetColor + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetColor + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRect + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRect + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponsePageState(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageState{} + + // 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 DocAnnotationsList200ResponsePageState + 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 DocAnnotationsList200ResponsePageState + 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 DocAnnotationsList200ResponsePageState + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateRevision{} + + // 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 DocAnnotationsList200ResponsePageStateRevision + 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 DocAnnotationsList200ResponsePageStateRevision + 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 DocAnnotationsList200ResponsePageStateRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + + // 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 DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + 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 DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + 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 DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown{} + + // 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 DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + 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 DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + 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 DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList404Response{} + + // 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 DocAnnotationsList404Response + 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 DocAnnotationsList404Response + 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 DocAnnotationsList404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200Response{} + + // 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 DocAnnotationsListAll200Response + 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 DocAnnotationsListAll200Response + 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 DocAnnotationsListAll200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItem + 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 DocAnnotationsListAll200ResponsePagesItem + 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 DocAnnotationsListAll200ResponsePagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + 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() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} + + // 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + 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 DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + + // 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 DocAnnotationsListAll200ResponsePagesItemPageState + 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 DocAnnotationsListAll200ResponsePagesItemPageState + 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 DocAnnotationsListAll200ResponsePagesItemPageState + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + + // 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 DocAnnotationsListAll200ResponsePagesItemPageStateRevision + 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 DocAnnotationsListAll200ResponsePagesItemPageStateRevision + 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 DocAnnotationsListAll200ResponsePagesItemPageStateRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + 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 DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + 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 DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown{} + + // 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 DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + 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 DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + 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 DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + + // 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 DocAnnotationsListAll404Response + 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 DocAnnotationsListAll404Response + 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 DocAnnotationsListAll404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll409Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll409Response{} + + // 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 DocAnnotationsListAll409Response + 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 DocAnnotationsListAll409Response + 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 DocAnnotationsListAll409Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200Response{} + + // 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 DocAnnotationsUpdate200Response + 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 DocAnnotationsUpdate200Response + 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 DocAnnotationsUpdate200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMeta{} + + // 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 DocAnnotationsUpdate200ResponseMeta + 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 DocAnnotationsUpdate200ResponseMeta + 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 DocAnnotationsUpdate200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + + // 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + + // 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 DocAnnotationsUpdate200ResponseMetaCacheDelta + 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 DocAnnotationsUpdate200ResponseMetaCacheDelta + 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 DocAnnotationsUpdate200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + + // 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 DocAnnotationsUpdate400Response + 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 DocAnnotationsUpdate400Response + 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 DocAnnotationsUpdate400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsUpdate404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate404Response{} + + // 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 DocAnnotationsUpdate404Response + 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 DocAnnotationsUpdate404Response + 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 DocAnnotationsUpdate404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocDownloadResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocDownloadResponse{} + + // 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 DocDownloadResponse + 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 DocDownloadResponse + 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 DocDownloadResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsExportDataResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsExportDataResponse{} + + // 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 DocFormsExportDataResponse + 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 DocFormsExportDataResponse + 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 DocFormsExportDataResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + + // 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 DocFormsGet200Response + 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 DocFormsGet200Response + 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 DocFormsGet200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + + // 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 DocFormsGet200ResponseCalculationOrderItemFqn + 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 DocFormsGet200ResponseCalculationOrderItemFqn + 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 DocFormsGet200ResponseCalculationOrderItemFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} + + // 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 DocFormsGet200ResponseCalculationOrderItemObjectNumber + 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 DocFormsGet200ResponseCalculationOrderItemObjectNumber + 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 DocFormsGet200ResponseCalculationOrderItemObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + + // 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 DocFormsGet200ResponseFieldsItemCheckbox + 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 DocFormsGet200ResponseFieldsItemCheckbox + 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 DocFormsGet200ResponseFieldsItemCheckbox + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActions + 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 DocFormsGet200ResponseFieldsItemCheckboxActions + 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 DocFormsGet200ResponseFieldsItemCheckboxActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxFlags + 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 DocFormsGet200ResponseFieldsItemCheckboxFlags + 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 DocFormsGet200ResponseFieldsItemCheckboxFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxRefFqn + 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 DocFormsGet200ResponseFieldsItemCheckboxRefFqn + 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 DocFormsGet200ResponseFieldsItemCheckboxRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + 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 DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + 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 DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + + // 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 DocFormsGet200ResponseFieldsItemCombobox + 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 DocFormsGet200ResponseFieldsItemCombobox + 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 DocFormsGet200ResponseFieldsItemCombobox + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActions + 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 DocFormsGet200ResponseFieldsItemComboboxActions + 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 DocFormsGet200ResponseFieldsItemComboboxActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + 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 DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + 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 DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormat + 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormat + 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsValidate + 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 DocFormsGet200ResponseFieldsItemComboboxActionsValidate + 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 DocFormsGet200ResponseFieldsItemComboboxActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxFlags + 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 DocFormsGet200ResponseFieldsItemComboboxFlags + 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 DocFormsGet200ResponseFieldsItemComboboxFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxOptionsItem + 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 DocFormsGet200ResponseFieldsItemComboboxOptionsItem + 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 DocFormsGet200ResponseFieldsItemComboboxOptionsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxRefFqn + 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 DocFormsGet200ResponseFieldsItemComboboxRefFqn + 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 DocFormsGet200ResponseFieldsItemComboboxRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + 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 DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + 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 DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + + // 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 DocFormsGet200ResponseFieldsItemListbox + 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 DocFormsGet200ResponseFieldsItemListbox + 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 DocFormsGet200ResponseFieldsItemListbox + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActions + 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 DocFormsGet200ResponseFieldsItemListboxActions + 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 DocFormsGet200ResponseFieldsItemListboxActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculate + 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculate + 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsFormat + 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 DocFormsGet200ResponseFieldsItemListboxActionsFormat + 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 DocFormsGet200ResponseFieldsItemListboxActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsValidate + 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 DocFormsGet200ResponseFieldsItemListboxActionsValidate + 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 DocFormsGet200ResponseFieldsItemListboxActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + + // 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 DocFormsGet200ResponseFieldsItemListboxFlags + 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 DocFormsGet200ResponseFieldsItemListboxFlags + 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 DocFormsGet200ResponseFieldsItemListboxFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + + // 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 DocFormsGet200ResponseFieldsItemListboxOptionsItem + 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 DocFormsGet200ResponseFieldsItemListboxOptionsItem + 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 DocFormsGet200ResponseFieldsItemListboxOptionsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemListboxRefFqn + 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 DocFormsGet200ResponseFieldsItemListboxRefFqn + 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 DocFormsGet200ResponseFieldsItemListboxRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemListboxValueEntryArray + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryArray + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemListboxValueEntryNone + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryNone + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemListboxWidgetsItem + 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 DocFormsGet200ResponseFieldsItemListboxWidgetsItem + 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 DocFormsGet200ResponseFieldsItemListboxWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + + // 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 DocFormsGet200ResponseFieldsItemPushbutton + 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 DocFormsGet200ResponseFieldsItemPushbutton + 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 DocFormsGet200ResponseFieldsItemPushbutton + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActions + 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 DocFormsGet200ResponseFieldsItemPushbuttonActions + 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 DocFormsGet200ResponseFieldsItemPushbuttonActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonFlags + 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 DocFormsGet200ResponseFieldsItemPushbuttonFlags + 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 DocFormsGet200ResponseFieldsItemPushbuttonFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + 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 DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + 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 DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + 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 DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + 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 DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadio{} + + // 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 DocFormsGet200ResponseFieldsItemRadio + 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 DocFormsGet200ResponseFieldsItemRadio + 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 DocFormsGet200ResponseFieldsItemRadio + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActions + 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 DocFormsGet200ResponseFieldsItemRadioActions + 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 DocFormsGet200ResponseFieldsItemRadioActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsCalculate + 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 DocFormsGet200ResponseFieldsItemRadioActionsCalculate + 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 DocFormsGet200ResponseFieldsItemRadioActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsFormat + 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 DocFormsGet200ResponseFieldsItemRadioActionsFormat + 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 DocFormsGet200ResponseFieldsItemRadioActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsValidate + 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 DocFormsGet200ResponseFieldsItemRadioActionsValidate + 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 DocFormsGet200ResponseFieldsItemRadioActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} + + // 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 DocFormsGet200ResponseFieldsItemRadioFlags + 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 DocFormsGet200ResponseFieldsItemRadioFlags + 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 DocFormsGet200ResponseFieldsItemRadioFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemRadioRefFqn + 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 DocFormsGet200ResponseFieldsItemRadioRefFqn + 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 DocFormsGet200ResponseFieldsItemRadioRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryArray + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryArray + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryNone + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryNone + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemRadioWidgetsItem + 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 DocFormsGet200ResponseFieldsItemRadioWidgetsItem + 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 DocFormsGet200ResponseFieldsItemRadioWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignature{} + + // 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 DocFormsGet200ResponseFieldsItemSignature + 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 DocFormsGet200ResponseFieldsItemSignature + 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 DocFormsGet200ResponseFieldsItemSignature + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActions + 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 DocFormsGet200ResponseFieldsItemSignatureActions + 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 DocFormsGet200ResponseFieldsItemSignatureActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormat + 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormat + 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsValidate + 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 DocFormsGet200ResponseFieldsItemSignatureActionsValidate + 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 DocFormsGet200ResponseFieldsItemSignatureActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureFlags + 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 DocFormsGet200ResponseFieldsItemSignatureFlags + 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 DocFormsGet200ResponseFieldsItemSignatureFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureRefFqn + 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 DocFormsGet200ResponseFieldsItemSignatureRefFqn + 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 DocFormsGet200ResponseFieldsItemSignatureRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryNone + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryNone + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + 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 DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + 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 DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemText(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + + // 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 DocFormsGet200ResponseFieldsItemText + 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 DocFormsGet200ResponseFieldsItemText + 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 DocFormsGet200ResponseFieldsItemText + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + + // 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 DocFormsGet200ResponseFieldsItemTextActions + 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 DocFormsGet200ResponseFieldsItemTextActions + 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 DocFormsGet200ResponseFieldsItemTextActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsCalculate + 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 DocFormsGet200ResponseFieldsItemTextActionsCalculate + 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 DocFormsGet200ResponseFieldsItemTextActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsFormat + 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 DocFormsGet200ResponseFieldsItemTextActionsFormat + 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 DocFormsGet200ResponseFieldsItemTextActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemTextActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemTextActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsValidate + 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 DocFormsGet200ResponseFieldsItemTextActionsValidate + 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 DocFormsGet200ResponseFieldsItemTextActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + + // 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 DocFormsGet200ResponseFieldsItemTextFlags + 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 DocFormsGet200ResponseFieldsItemTextFlags + 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 DocFormsGet200ResponseFieldsItemTextFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemTextRefFqn + 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 DocFormsGet200ResponseFieldsItemTextRefFqn + 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 DocFormsGet200ResponseFieldsItemTextRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemTextRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemTextRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemTextRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemTextValueEntryArray + 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 DocFormsGet200ResponseFieldsItemTextValueEntryArray + 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 DocFormsGet200ResponseFieldsItemTextValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemTextValueEntryNone + 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 DocFormsGet200ResponseFieldsItemTextValueEntryNone + 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 DocFormsGet200ResponseFieldsItemTextValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemTextValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemTextValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemTextValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemTextWidgetsItem + 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 DocFormsGet200ResponseFieldsItemTextWidgetsItem + 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 DocFormsGet200ResponseFieldsItemTextWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + + // 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 DocFormsGet200ResponseFieldsItemUnknown + 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 DocFormsGet200ResponseFieldsItemUnknown + 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 DocFormsGet200ResponseFieldsItemUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActions + 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 DocFormsGet200ResponseFieldsItemUnknownActions + 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 DocFormsGet200ResponseFieldsItemUnknownActions + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormat + 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormat + 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormat + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsValidate + 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 DocFormsGet200ResponseFieldsItemUnknownActionsValidate + 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 DocFormsGet200ResponseFieldsItemUnknownActionsValidate + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + 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 DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownFlags + 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 DocFormsGet200ResponseFieldsItemUnknownFlags + 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 DocFormsGet200ResponseFieldsItemUnknownFlags + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownRefFqn + 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 DocFormsGet200ResponseFieldsItemUnknownRefFqn + 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 DocFormsGet200ResponseFieldsItemUnknownRefFqn + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + 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 DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryNone(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryNone{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryNone + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryNone + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryNone + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + + // 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 DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + 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 DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + 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 DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsGet404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet404Response{} + + // 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 DocFormsGet404Response + 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 DocFormsGet404Response + 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 DocFormsGet404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200Response{} + + // 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 DocFormsImportData200Response + 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 DocFormsImportData200Response + 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 DocFormsImportData200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + + // 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 DocFormsImportData200ResponseMeta + 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 DocFormsImportData200ResponseMeta + 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 DocFormsImportData200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + + // 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 DocFormsImportData200ResponseMetaAffectedPagesItem + 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 DocFormsImportData200ResponseMetaAffectedPagesItem + 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 DocFormsImportData200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocFormsImportData200ResponseMetaAffectedPagesItemRevision + 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 DocFormsImportData200ResponseMetaAffectedPagesItemRevision + 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 DocFormsImportData200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + + // 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 DocFormsImportData200ResponseMetaCacheDelta + 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 DocFormsImportData200ResponseMetaCacheDelta + 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 DocFormsImportData200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItem + 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItem + 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData400Response{} + + // 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 DocFormsImportData400Response + 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 DocFormsImportData400Response + 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 DocFormsImportData400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsImportData404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData404Response{} + + // 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 DocFormsImportData404Response + 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 DocFormsImportData404Response + 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 DocFormsImportData404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200Response{} + + // 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 DocFormsReset200Response + 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 DocFormsReset200Response + 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 DocFormsReset200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMeta{} + + // 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 DocFormsReset200ResponseMeta + 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 DocFormsReset200ResponseMeta + 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 DocFormsReset200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + + // 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 DocFormsReset200ResponseMetaAffectedPagesItem + 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 DocFormsReset200ResponseMetaAffectedPagesItem + 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 DocFormsReset200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocFormsReset200ResponseMetaAffectedPagesItemRevision + 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 DocFormsReset200ResponseMetaAffectedPagesItemRevision + 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 DocFormsReset200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + + // 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 DocFormsReset200ResponseMetaCacheDelta + 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 DocFormsReset200ResponseMetaCacheDelta + 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 DocFormsReset200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocFormsReset200ResponseMetaCacheDeltaPagesItem + 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 DocFormsReset200ResponseMetaCacheDeltaPagesItem + 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 DocFormsReset200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + 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 DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + 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 DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsReset404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset404Response{} + + // 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 DocFormsReset404Response + 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 DocFormsReset404Response + 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 DocFormsReset404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200Response{} + + // 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 DocFormsSetValue200Response + 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 DocFormsSetValue200Response + 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 DocFormsSetValue200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + + // 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 DocFormsSetValue200ResponseMeta + 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 DocFormsSetValue200ResponseMeta + 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 DocFormsSetValue200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + + // 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 DocFormsSetValue200ResponseMetaAffectedPagesItem + 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 DocFormsSetValue200ResponseMetaAffectedPagesItem + 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 DocFormsSetValue200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + 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 DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + 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 DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + + // 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 DocFormsSetValue200ResponseMetaCacheDelta + 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 DocFormsSetValue200ResponseMetaCacheDelta + 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 DocFormsSetValue200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue400Response{} + + // 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 DocFormsSetValue400Response + 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 DocFormsSetValue400Response + 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 DocFormsSetValue400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocFormsSetValue404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + + // 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 DocFormsSetValue404Response + 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 DocFormsSetValue404Response + 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 DocFormsSetValue404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocHead404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocHead404Response{} + + // 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 DocHead404Response + 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 DocHead404Response + 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 DocHead404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocManifest404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocManifest404Response{} + + // 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 DocManifest404Response + 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 DocManifest404Response + 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 DocManifest404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocMetadataGet200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + + // 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 DocMetadataGet200Response + 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 DocMetadataGet200Response + 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 DocMetadataGet200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocMetadataGet404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet404Response{} + + // 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 DocMetadataGet404Response + 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 DocMetadataGet404Response + 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 DocMetadataGet404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200Response{} + + // 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 DocPagesDelete200Response + 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 DocPagesDelete200Response + 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 DocPagesDelete200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMeta{} + + // 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 DocPagesDelete200ResponseMeta + 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 DocPagesDelete200ResponseMeta + 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 DocPagesDelete200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + + // 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 DocPagesDelete200ResponseMetaAffectedPagesItem + 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 DocPagesDelete200ResponseMetaAffectedPagesItem + 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 DocPagesDelete200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocPagesDelete200ResponseMetaAffectedPagesItemRevision + 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 DocPagesDelete200ResponseMetaAffectedPagesItemRevision + 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 DocPagesDelete200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + + // 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 DocPagesDelete200ResponseMetaCacheDelta + 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 DocPagesDelete200ResponseMetaCacheDelta + 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 DocPagesDelete200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItem + 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItem + 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + + // 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 DocPagesDelete400Response + 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 DocPagesDelete400Response + 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 DocPagesDelete400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesDelete404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + + // 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 DocPagesDelete404Response + 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 DocPagesDelete404Response + 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 DocPagesDelete404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesExtract400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesExtract400Response{} + + // 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 DocPagesExtract400Response + 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 DocPagesExtract400Response + 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 DocPagesExtract400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesExtract404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesExtract404Response{} + + // 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 DocPagesExtract404Response + 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 DocPagesExtract404Response + 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 DocPagesExtract404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200Response{} + + // 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 DocPagesFlatten200Response + 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 DocPagesFlatten200Response + 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 DocPagesFlatten200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMeta{} + + // 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 DocPagesFlatten200ResponseMeta + 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 DocPagesFlatten200ResponseMeta + 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 DocPagesFlatten200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + + // 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 DocPagesFlatten200ResponseMetaAffectedPagesItem + 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 DocPagesFlatten200ResponseMetaAffectedPagesItem + 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 DocPagesFlatten200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + 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 DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + 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 DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + + // 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 DocPagesFlatten200ResponseMetaCacheDelta + 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 DocPagesFlatten200ResponseMetaCacheDelta + 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 DocPagesFlatten200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + + // 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 DocPagesFlatten400Response + 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 DocPagesFlatten400Response + 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 DocPagesFlatten400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesFlatten404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten404Response{} + + // 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 DocPagesFlatten404Response + 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 DocPagesFlatten404Response + 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 DocPagesFlatten404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200Response{} + + // 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 DocPagesInsert200Response + 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 DocPagesInsert200Response + 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 DocPagesInsert200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMeta{} + + // 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 DocPagesInsert200ResponseMeta + 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 DocPagesInsert200ResponseMeta + 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 DocPagesInsert200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + + // 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 DocPagesInsert200ResponseMetaAffectedPagesItem + 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 DocPagesInsert200ResponseMetaAffectedPagesItem + 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 DocPagesInsert200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocPagesInsert200ResponseMetaAffectedPagesItemRevision + 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 DocPagesInsert200ResponseMetaAffectedPagesItemRevision + 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 DocPagesInsert200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + + // 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 DocPagesInsert200ResponseMetaCacheDelta + 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 DocPagesInsert200ResponseMetaCacheDelta + 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 DocPagesInsert200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocPagesInsert200ResponseMetaCacheDeltaPagesItem + 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 DocPagesInsert200ResponseMetaCacheDeltaPagesItem + 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 DocPagesInsert200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert400Response{} + + // 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 DocPagesInsert400Response + 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 DocPagesInsert400Response + 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 DocPagesInsert400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsert404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsert404Response{} + + // 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 DocPagesInsert404Response + 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 DocPagesInsert404Response + 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 DocPagesInsert404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200Response{} + + // 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 DocPagesInsertBlank200Response + 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 DocPagesInsertBlank200Response + 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 DocPagesInsertBlank200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + + // 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 DocPagesInsertBlank200ResponseMeta + 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 DocPagesInsertBlank200ResponseMeta + 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 DocPagesInsertBlank200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + + // 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItem + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItem + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + + // 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 DocPagesInsertBlank200ResponseMetaCacheDelta + 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 DocPagesInsertBlank200ResponseMetaCacheDelta + 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 DocPagesInsertBlank200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank400Response{} + + // 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 DocPagesInsertBlank400Response + 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 DocPagesInsertBlank400Response + 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 DocPagesInsertBlank400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesInsertBlank404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank404Response{} + + // 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 DocPagesInsertBlank404Response + 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 DocPagesInsertBlank404Response + 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 DocPagesInsertBlank404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200Response{} + + // 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 DocPagesMove200Response + 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 DocPagesMove200Response + 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 DocPagesMove200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMeta{} + + // 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 DocPagesMove200ResponseMeta + 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 DocPagesMove200ResponseMeta + 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 DocPagesMove200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + + // 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 DocPagesMove200ResponseMetaAffectedPagesItem + 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 DocPagesMove200ResponseMetaAffectedPagesItem + 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 DocPagesMove200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocPagesMove200ResponseMetaAffectedPagesItemRevision + 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 DocPagesMove200ResponseMetaAffectedPagesItemRevision + 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 DocPagesMove200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDelta{} + + // 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 DocPagesMove200ResponseMetaCacheDelta + 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 DocPagesMove200ResponseMetaCacheDelta + 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 DocPagesMove200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocPagesMove200ResponseMetaCacheDeltaPagesItem + 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 DocPagesMove200ResponseMetaCacheDeltaPagesItem + 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 DocPagesMove200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove400Response{} + + // 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 DocPagesMove400Response + 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 DocPagesMove400Response + 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 DocPagesMove400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesMove404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove404Response{} + + // 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 DocPagesMove404Response + 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 DocPagesMove404Response + 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 DocPagesMove404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200Response{} + + // 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 DocPagesRotate200Response + 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 DocPagesRotate200Response + 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 DocPagesRotate200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMeta{} + + // 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 DocPagesRotate200ResponseMeta + 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 DocPagesRotate200ResponseMeta + 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 DocPagesRotate200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + + // 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 DocPagesRotate200ResponseMetaAffectedPagesItem + 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 DocPagesRotate200ResponseMetaAffectedPagesItem + 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 DocPagesRotate200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocPagesRotate200ResponseMetaAffectedPagesItemRevision + 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 DocPagesRotate200ResponseMetaAffectedPagesItemRevision + 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 DocPagesRotate200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + + // 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 DocPagesRotate200ResponseMetaCacheDelta + 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 DocPagesRotate200ResponseMetaCacheDelta + 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 DocPagesRotate200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItem + 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItem + 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate400Response{} + + // 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 DocPagesRotate400Response + 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 DocPagesRotate400Response + 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 DocPagesRotate400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesRotate404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesRotate404Response{} + + // 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 DocPagesRotate404Response + 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 DocPagesRotate404Response + 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 DocPagesRotate404Response + 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() + // Arrange + obj := &DocRedactionsApply200Response{} + + // 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 DocRedactionsApply200Response + 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 DocRedactionsApply200Response + 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 DocRedactionsApply200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMeta{} + + // 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 DocRedactionsApply200ResponseMeta + 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 DocRedactionsApply200ResponseMeta + 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 DocRedactionsApply200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + + // 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 DocRedactionsApply200ResponseMetaAffectedPagesItem + 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 DocRedactionsApply200ResponseMetaAffectedPagesItem + 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 DocRedactionsApply200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + + // 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 DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + 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 DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + 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 DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + + // 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 DocRedactionsApply200ResponseMetaCacheDelta + 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 DocRedactionsApply200ResponseMetaCacheDelta + 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 DocRedactionsApply200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + + // 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + + // 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply400Response{} + + // 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 DocRedactionsApply400Response + 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 DocRedactionsApply400Response + 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 DocRedactionsApply400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRedactionsApply404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRedactionsApply404Response{} + + // 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 DocRedactionsApply404Response + 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 DocRedactionsApply404Response + 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 DocRedactionsApply404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocRenderResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocRenderResponse{} + + // 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 DocRenderResponse + 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 DocRenderResponse + 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 DocRenderResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocText404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocText404Response{} + + // 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 DocText404Response + 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 DocText404Response + 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 DocText404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsCommit400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400Response{} + + // 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 DocumentsCommit400Response + 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 DocumentsCommit400Response + 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 DocumentsCommit400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsCommit400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit400ResponseError{} + + // 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 DocumentsCommit400ResponseError + 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 DocumentsCommit400ResponseError + 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 DocumentsCommit400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsCommit404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404Response{} + + // 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 DocumentsCommit404Response + 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 DocumentsCommit404Response + 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 DocumentsCommit404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsCommit404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsCommit404ResponseError{} + + // 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 DocumentsCommit404ResponseError + 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 DocumentsCommit404ResponseError + 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 DocumentsCommit404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDelete403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403Response{} + + // 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 DocumentsDelete403Response + 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 DocumentsDelete403Response + 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 DocumentsDelete403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDelete403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete403ResponseError{} + + // 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 DocumentsDelete403ResponseError + 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 DocumentsDelete403ResponseError + 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 DocumentsDelete403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDelete404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404Response{} + + // 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 DocumentsDelete404Response + 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 DocumentsDelete404Response + 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 DocumentsDelete404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDelete404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDelete404ResponseError{} + + // 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 DocumentsDelete404ResponseError + 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 DocumentsDelete404ResponseError + 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 DocumentsDelete404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDownload403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403Response{} + + // 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 DocumentsDownload403Response + 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 DocumentsDownload403Response + 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 DocumentsDownload403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDownload403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload403ResponseError{} + + // 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 DocumentsDownload403ResponseError + 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 DocumentsDownload403ResponseError + 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 DocumentsDownload403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDownload404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404Response{} + + // 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 DocumentsDownload404Response + 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 DocumentsDownload404Response + 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 DocumentsDownload404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsDownload404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsDownload404ResponseError{} + + // 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 DocumentsDownload404ResponseError + 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 DocumentsDownload404ResponseError + 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 DocumentsDownload404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsGet403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403Response{} + + // 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 DocumentsGet403Response + 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 DocumentsGet403Response + 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 DocumentsGet403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsGet403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet403ResponseError{} + + // 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 DocumentsGet403ResponseError + 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 DocumentsGet403ResponseError + 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 DocumentsGet403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsGet404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404Response{} + + // 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 DocumentsGet404Response + 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 DocumentsGet404Response + 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 DocumentsGet404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsGet404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsGet404ResponseError{} + + // 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 DocumentsGet404ResponseError + 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 DocumentsGet404ResponseError + 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 DocumentsGet404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom202Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202Response{} + + // 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 DocumentsImportFrom202Response + 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 DocumentsImportFrom202Response + 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 DocumentsImportFrom202Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom202ResponseDocument(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom202ResponseDocument{} + + // 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 DocumentsImportFrom202ResponseDocument + 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 DocumentsImportFrom202ResponseDocument + 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 DocumentsImportFrom202ResponseDocument + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400Response{} + + // 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 DocumentsImportFrom400Response + 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 DocumentsImportFrom400Response + 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 DocumentsImportFrom400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom400ResponseError{} + + // 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 DocumentsImportFrom400ResponseError + 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 DocumentsImportFrom400ResponseError + 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 DocumentsImportFrom400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403Response{} + + // 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 DocumentsImportFrom403Response + 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 DocumentsImportFrom403Response + 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 DocumentsImportFrom403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom403ResponseError{} + + // 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 DocumentsImportFrom403ResponseError + 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 DocumentsImportFrom403ResponseError + 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 DocumentsImportFrom403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom502Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502Response{} + + // 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 DocumentsImportFrom502Response + 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 DocumentsImportFrom502Response + 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 DocumentsImportFrom502Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsImportFrom502ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsImportFrom502ResponseError{} + + // 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 DocumentsImportFrom502ResponseError + 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 DocumentsImportFrom502ResponseError + 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 DocumentsImportFrom502ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsInit400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400Response{} + + // 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 DocumentsInit400Response + 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 DocumentsInit400Response + 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 DocumentsInit400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsInit400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsInit400ResponseError{} + + // 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 DocumentsInit400ResponseError + 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 DocumentsInit400ResponseError + 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 DocumentsInit400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsList400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400Response{} + + // 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 DocumentsList400Response + 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 DocumentsList400Response + 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 DocumentsList400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsList400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsList400ResponseError{} + + // 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 DocumentsList400ResponseError + 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 DocumentsList400ResponseError + 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 DocumentsList400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsThumbnailResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponse{} + + // 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 DocumentsThumbnailResponse + 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 DocumentsThumbnailResponse + 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 DocumentsThumbnailResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsThumbnailResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsThumbnailResponseError{} + + // 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 DocumentsThumbnailResponseError + 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 DocumentsThumbnailResponseError + 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 DocumentsThumbnailResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsUploadProxy400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400Response{} + + // 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 DocumentsUploadProxy400Response + 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 DocumentsUploadProxy400Response + 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 DocumentsUploadProxy400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsUploadProxy400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy400ResponseError{} + + // 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 DocumentsUploadProxy400ResponseError + 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 DocumentsUploadProxy400ResponseError + 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 DocumentsUploadProxy400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsUploadProxy409Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409Response{} + + // 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 DocumentsUploadProxy409Response + 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 DocumentsUploadProxy409Response + 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 DocumentsUploadProxy409Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocumentsUploadProxy409ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocumentsUploadProxy409ResponseError{} + + // 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 DocumentsUploadProxy409ResponseError + 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 DocumentsUploadProxy409ResponseError + 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 DocumentsUploadProxy409ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingEngineErrorPayload(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &EngineErrorPayload{} + + // 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 EngineErrorPayload + 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 EngineErrorPayload + 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 EngineErrorPayload + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesCreate400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400Response{} + + // 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 SharesCreate400Response + 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 SharesCreate400Response + 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 SharesCreate400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesCreate400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate400ResponseError{} + + // 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 SharesCreate400ResponseError + 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 SharesCreate400ResponseError + 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 SharesCreate400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesCreate403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403Response{} + + // 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 SharesCreate403Response + 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 SharesCreate403Response + 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 SharesCreate403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesCreate403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate403ResponseError{} + + // 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 SharesCreate403ResponseError + 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 SharesCreate403ResponseError + 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 SharesCreate403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesCreate404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404Response{} + + // 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 SharesCreate404Response + 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 SharesCreate404Response + 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 SharesCreate404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesCreate404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesCreate404ResponseError{} + + // 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 SharesCreate404ResponseError + 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 SharesCreate404ResponseError + 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 SharesCreate404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesDeleteResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponse{} + + // 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 SharesDeleteResponse + 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 SharesDeleteResponse + 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 SharesDeleteResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesDeleteResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesDeleteResponseError{} + + // 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 SharesDeleteResponseError + 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 SharesDeleteResponseError + 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 SharesDeleteResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400Response{} + + // 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 SharesExchange400Response + 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 SharesExchange400Response + 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 SharesExchange400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange400ResponseError{} + + // 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 SharesExchange400ResponseError + 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 SharesExchange400ResponseError + 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 SharesExchange400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403Response{} + + // 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 SharesExchange403Response + 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 SharesExchange403Response + 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 SharesExchange403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange403ResponseError{} + + // 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 SharesExchange403ResponseError + 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 SharesExchange403ResponseError + 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 SharesExchange403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404Response{} + + // 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 SharesExchange404Response + 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 SharesExchange404Response + 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 SharesExchange404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange404ResponseError{} + + // 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 SharesExchange404ResponseError + 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 SharesExchange404ResponseError + 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 SharesExchange404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange410Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410Response{} + + // 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 SharesExchange410Response + 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 SharesExchange410Response + 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 SharesExchange410Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange410ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange410ResponseError{} + + // 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 SharesExchange410ResponseError + 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 SharesExchange410ResponseError + 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 SharesExchange410ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange422Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422Response{} + + // 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 SharesExchange422Response + 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 SharesExchange422Response + 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 SharesExchange422Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesExchange422ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesExchange422ResponseError{} + + // 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 SharesExchange422ResponseError + 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 SharesExchange422ResponseError + 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 SharesExchange422ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesGet404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404Response{} + + // 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 SharesGet404Response + 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 SharesGet404Response + 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 SharesGet404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesGet404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesGet404ResponseError{} + + // 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 SharesGet404ResponseError + 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 SharesGet404ResponseError + 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 SharesGet404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesList400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400Response{} + + // 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 SharesList400Response + 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 SharesList400Response + 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 SharesList400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesList400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesList400ResponseError{} + + // 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 SharesList400ResponseError + 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 SharesList400ResponseError + 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 SharesList400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesUpdate400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400Response{} + + // 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 SharesUpdate400Response + 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 SharesUpdate400Response + 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 SharesUpdate400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesUpdate400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate400ResponseError{} + + // 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 SharesUpdate400ResponseError + 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 SharesUpdate400ResponseError + 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 SharesUpdate400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesUpdate404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404Response{} + + // 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 SharesUpdate404Response + 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 SharesUpdate404Response + 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 SharesUpdate404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingSharesUpdate404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &SharesUpdate404ResponseError{} + + // 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 SharesUpdate404ResponseError + 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 SharesUpdate404ResponseError + 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 SharesUpdate404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsCreate400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400Response{} + + // 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 TenantsCreate400Response + 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 TenantsCreate400Response + 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 TenantsCreate400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsCreate400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsCreate400ResponseError{} + + // 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 TenantsCreate400ResponseError + 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 TenantsCreate400ResponseError + 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 TenantsCreate400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsDeleteResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponse{} + + // 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 TenantsDeleteResponse + 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 TenantsDeleteResponse + 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 TenantsDeleteResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsDeleteResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsDeleteResponseError{} + + // 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 TenantsDeleteResponseError + 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 TenantsDeleteResponseError + 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 TenantsDeleteResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsGet404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404Response{} + + // 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 TenantsGet404Response + 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 TenantsGet404Response + 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 TenantsGet404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsGet404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsGet404ResponseError{} + + // 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 TenantsGet404ResponseError + 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 TenantsGet404ResponseError + 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 TenantsGet404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsList400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400Response{} + + // 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 TenantsList400Response + 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 TenantsList400Response + 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 TenantsList400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsList400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsList400ResponseError{} + + // 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 TenantsList400ResponseError + 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 TenantsList400ResponseError + 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 TenantsList400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsResumeResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponse{} + + // 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 TenantsResumeResponse + 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 TenantsResumeResponse + 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 TenantsResumeResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsResumeResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsResumeResponseError{} + + // 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 TenantsResumeResponseError + 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 TenantsResumeResponseError + 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 TenantsResumeResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsSuspendResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponse{} + + // 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 TenantsSuspendResponse + 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 TenantsSuspendResponse + 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 TenantsSuspendResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsSuspendResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsSuspendResponseError{} + + // 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 TenantsSuspendResponseError + 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 TenantsSuspendResponseError + 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 TenantsSuspendResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsUsage400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400Response{} + + // 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 TenantsUsage400Response + 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 TenantsUsage400Response + 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 TenantsUsage400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsUsage400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage400ResponseError{} + + // 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 TenantsUsage400ResponseError + 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 TenantsUsage400ResponseError + 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 TenantsUsage400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsUsage404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404Response{} + + // 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 TenantsUsage404Response + 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 TenantsUsage404Response + 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 TenantsUsage404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTenantsUsage404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TenantsUsage404ResponseError{} + + // 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 TenantsUsage404ResponseError + 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 TenantsUsage404ResponseError + 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 TenantsUsage404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensIssue400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400Response{} + + // 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 TokensIssue400Response + 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 TokensIssue400Response + 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 TokensIssue400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensIssue400ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue400ResponseError{} + + // 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 TokensIssue400ResponseError + 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 TokensIssue400ResponseError + 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 TokensIssue400ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensIssue403Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403Response{} + + // 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 TokensIssue403Response + 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 TokensIssue403Response + 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 TokensIssue403Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensIssue403ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue403ResponseError{} + + // 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 TokensIssue403ResponseError + 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 TokensIssue403ResponseError + 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 TokensIssue403ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensIssue404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404Response{} + + // 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 TokensIssue404Response + 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 TokensIssue404Response + 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 TokensIssue404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensIssue404ResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensIssue404ResponseError{} + + // 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 TokensIssue404ResponseError + 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 TokensIssue404ResponseError + 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 TokensIssue404ResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensRevokeResponse(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponse{} + + // 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 TokensRevokeResponse + 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 TokensRevokeResponse + 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 TokensRevokeResponse + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingTokensRevokeResponseError(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &TokensRevokeResponseError{} + + // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + // Unmarshal back and verify round-trip + var unmarshaled TokensRevokeResponseError + 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 TokensRevokeResponseError + 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 TokensRevokeResponseError + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestStringAdminErrorPayload(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &AdminErrorPayload{} + 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 *AdminErrorPayload + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringAdminErrorPayloadError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &AdminErrorPayloadError{} + 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 *AdminErrorPayloadError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200Response{} + 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 *DocAnnotationsCreate200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMeta{} + 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 *DocAnnotationsCreate200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItem{} + 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 *DocAnnotationsCreate200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision{} + 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 *DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + 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 *DocAnnotationsCreate200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem{} + 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 *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate400Response{} + 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 *DocAnnotationsCreate400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsCreate404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate404Response{} + 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 *DocAnnotationsCreate404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200Response{} + 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 *DocAnnotationsDelete200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMeta{} + 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 *DocAnnotationsDelete200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItem{} + 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 *DocAnnotationsDelete200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision{} + 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 *DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + 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 *DocAnnotationsDelete200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem{} + 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 *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsDelete404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete404Response{} + 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 *DocAnnotationsDelete404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200Response{} + 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 *DocAnnotationsList200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaret + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircle + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachment + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeText + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlight + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInk + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLine + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLink + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported{} + 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 *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygon + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolyline + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + 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() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedact + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquare + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquiggly + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStamp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeout + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + 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 *DocAnnotationsList200ResponseAnnotationsItemText + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderline + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidget + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActions{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} + 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 *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponsePageState(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponsePageState{} + 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 *DocAnnotationsList200ResponsePageState + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponsePageStateRevision{} + 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 *DocAnnotationsList200ResponsePageStateRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + 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 *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown{} + 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 *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList404Response{} + 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 *DocAnnotationsList404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200Response{} + 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 *DocAnnotationsListAll200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItem{} + 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 *DocAnnotationsListAll200ResponsePagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + 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() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} + 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 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + 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 *DocAnnotationsListAll200ResponsePagesItemPageState + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + 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 *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} + 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 *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown{} + 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 *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll404Response{} + 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 *DocAnnotationsListAll404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll409Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll409Response{} + 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 *DocAnnotationsListAll409Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200Response{} + 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 *DocAnnotationsUpdate200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMeta{} + 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 *DocAnnotationsUpdate200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + 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 *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + 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 *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + 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 *DocAnnotationsUpdate200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + 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 *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate400Response{} + 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 *DocAnnotationsUpdate400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsUpdate404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsUpdate404Response{} + 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 *DocAnnotationsUpdate404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocDownloadResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocDownloadResponse{} + 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 *DocDownloadResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsExportDataResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsExportDataResponse{} + 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 *DocFormsExportDataResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200Response{} + 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 *DocFormsGet200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + 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 *DocFormsGet200ResponseCalculationOrderItemFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} + 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 *DocFormsGet200ResponseCalculationOrderItemObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + 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 *DocFormsGet200ResponseFieldsItemCheckbox + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + 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 *DocFormsGet200ResponseFieldsItemCombobox + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + 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 *DocFormsGet200ResponseFieldsItemComboboxFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + 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 *DocFormsGet200ResponseFieldsItemComboboxOptionsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemComboboxRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListbox{} + 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 *DocFormsGet200ResponseFieldsItemListbox + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + 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 *DocFormsGet200ResponseFieldsItemListboxActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + 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 *DocFormsGet200ResponseFieldsItemListboxFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + 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 *DocFormsGet200ResponseFieldsItemListboxOptionsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemListboxRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemListboxValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemListboxWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + 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 *DocFormsGet200ResponseFieldsItemPushbutton + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadio{} + 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 *DocFormsGet200ResponseFieldsItemRadio + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActions{} + 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 *DocFormsGet200ResponseFieldsItemRadioActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} + 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 *DocFormsGet200ResponseFieldsItemRadioFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemRadioRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemRadioValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemRadioValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignature{} + 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 *DocFormsGet200ResponseFieldsItemSignature + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} + 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 *DocFormsGet200ResponseFieldsItemSignatureFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemSignatureRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemText(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemText{} + 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 *DocFormsGet200ResponseFieldsItemText + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActions{} + 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 *DocFormsGet200ResponseFieldsItemTextActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + 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 *DocFormsGet200ResponseFieldsItemTextFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemTextRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemTextRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemTextWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + 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 *DocFormsGet200ResponseFieldsItemUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActions + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsFormat + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsValidate + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + 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 *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + 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 *DocFormsGet200ResponseFieldsItemUnknownFlags + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} + 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 *DocFormsGet200ResponseFieldsItemUnknownRefFqn + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} + 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 *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryNone(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryNone{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported{} + 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 *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + 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 *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsGet404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsGet404Response{} + 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 *DocFormsGet404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200Response{} + 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 *DocFormsImportData200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMeta{} + 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 *DocFormsImportData200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + 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 *DocFormsImportData200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + 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 *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + 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 *DocFormsImportData200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + 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 *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData400Response{} + 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 *DocFormsImportData400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsImportData404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsImportData404Response{} + 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 *DocFormsImportData404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200Response{} + 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 *DocFormsReset200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMeta{} + 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 *DocFormsReset200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + 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 *DocFormsReset200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + 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 *DocFormsReset200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaCacheDelta{} + 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 *DocFormsReset200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + 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 *DocFormsReset200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsReset404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsReset404Response{} + 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 *DocFormsReset404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200Response{} + 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 *DocFormsSetValue200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMeta{} + 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 *DocFormsSetValue200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + 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 *DocFormsSetValue200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + 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 *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + 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 *DocFormsSetValue200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + 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 *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue400Response{} + 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 *DocFormsSetValue400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocFormsSetValue404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocFormsSetValue404Response{} + 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 *DocFormsSetValue404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocHead404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocHead404Response{} + 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 *DocHead404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocManifest404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocManifest404Response{} + 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 *DocManifest404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocMetadataGet200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocMetadataGet200Response{} + 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 *DocMetadataGet200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocMetadataGet404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocMetadataGet404Response{} + 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 *DocMetadataGet404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200Response{} + 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 *DocPagesDelete200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMeta{} + 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 *DocPagesDelete200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + 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 *DocPagesDelete200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesDelete200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete400Response{} + 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 *DocPagesDelete400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesDelete404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesDelete404Response{} + 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 *DocPagesDelete404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesExtract400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesExtract400Response{} + 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 *DocPagesExtract400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesExtract404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesExtract404Response{} + 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 *DocPagesExtract404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200Response{} + 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 *DocPagesFlatten200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMeta{} + 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 *DocPagesFlatten200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + 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 *DocPagesFlatten200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten400Response{} + 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 *DocPagesFlatten400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesFlatten404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesFlatten404Response{} + 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 *DocPagesFlatten404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200Response{} + 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 *DocPagesInsert200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMeta{} + 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 *DocPagesInsert200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + 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 *DocPagesInsert200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert400Response{} + 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 *DocPagesInsert400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsert404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsert404Response{} + 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 *DocPagesInsert404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200Response{} + 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 *DocPagesInsertBlank200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMeta{} + 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 *DocPagesInsertBlank200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + 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 *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + 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 *DocPagesInsertBlank200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank400Response{} + 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 *DocPagesInsertBlank400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesInsertBlank404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesInsertBlank404Response{} + 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 *DocPagesInsertBlank404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200Response{} + 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 *DocPagesMove200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMeta{} + 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 *DocPagesMove200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaCacheDelta{} + 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 *DocPagesMove200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesMove200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove400Response{} + 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 *DocPagesMove400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesMove404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesMove404Response{} + 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 *DocPagesMove404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200Response{} + 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 *DocPagesRotate200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMeta{} + 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 *DocPagesRotate200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + 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 *DocPagesRotate200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + 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 *DocPagesRotate200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate400Response{} + 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 *DocPagesRotate400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesRotate404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesRotate404Response{} + 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 *DocPagesRotate404Response + 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() + obj := &DocRedactionsApply200Response{} + 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 *DocRedactionsApply200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMeta{} + 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 *DocRedactionsApply200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + 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 *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + 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 *DocRedactionsApply200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + 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 *DocRedactionsApply200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} + 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 *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply400Response{} + 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 *DocRedactionsApply400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRedactionsApply404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRedactionsApply404Response{} + 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 *DocRedactionsApply404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocRenderResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocRenderResponse{} + 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 *DocRenderResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocText404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocText404Response{} + 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 *DocText404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsCommit400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsCommit400Response{} + 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 *DocumentsCommit400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsCommit400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsCommit400ResponseError{} + 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 *DocumentsCommit400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsCommit404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsCommit404Response{} + 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 *DocumentsCommit404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsCommit404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsCommit404ResponseError{} + 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 *DocumentsCommit404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDelete403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDelete403Response{} + 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 *DocumentsDelete403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDelete403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDelete403ResponseError{} + 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 *DocumentsDelete403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDelete404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDelete404Response{} + 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 *DocumentsDelete404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDelete404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDelete404ResponseError{} + 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 *DocumentsDelete404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDownload403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDownload403Response{} + 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 *DocumentsDownload403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDownload403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDownload403ResponseError{} + 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 *DocumentsDownload403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDownload404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDownload404Response{} + 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 *DocumentsDownload404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsDownload404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsDownload404ResponseError{} + 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 *DocumentsDownload404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsGet403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsGet403Response{} + 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 *DocumentsGet403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsGet403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsGet403ResponseError{} + 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 *DocumentsGet403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsGet404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsGet404Response{} + 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 *DocumentsGet404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsGet404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsGet404ResponseError{} + 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 *DocumentsGet404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom202Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom202Response{} + 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 *DocumentsImportFrom202Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom202ResponseDocument(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom202ResponseDocument{} + 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 *DocumentsImportFrom202ResponseDocument + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom400Response{} + 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 *DocumentsImportFrom400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom400ResponseError{} + 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 *DocumentsImportFrom400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom403Response{} + 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 *DocumentsImportFrom403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom403ResponseError{} + 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 *DocumentsImportFrom403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom502Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom502Response{} + 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 *DocumentsImportFrom502Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsImportFrom502ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsImportFrom502ResponseError{} + 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 *DocumentsImportFrom502ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsInit400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsInit400Response{} + 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 *DocumentsInit400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsInit400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsInit400ResponseError{} + 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 *DocumentsInit400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsList400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsList400Response{} + 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 *DocumentsList400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsList400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsList400ResponseError{} + 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 *DocumentsList400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsThumbnailResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsThumbnailResponse{} + 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 *DocumentsThumbnailResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsThumbnailResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsThumbnailResponseError{} + 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 *DocumentsThumbnailResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsUploadProxy400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsUploadProxy400Response{} + 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 *DocumentsUploadProxy400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsUploadProxy400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsUploadProxy400ResponseError{} + 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 *DocumentsUploadProxy400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsUploadProxy409Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsUploadProxy409Response{} + 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 *DocumentsUploadProxy409Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocumentsUploadProxy409ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocumentsUploadProxy409ResponseError{} + 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 *DocumentsUploadProxy409ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringEngineErrorPayload(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &EngineErrorPayload{} + 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 *EngineErrorPayload + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesCreate400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesCreate400Response{} + 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 *SharesCreate400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesCreate400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesCreate400ResponseError{} + 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 *SharesCreate400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesCreate403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesCreate403Response{} + 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 *SharesCreate403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesCreate403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesCreate403ResponseError{} + 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 *SharesCreate403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesCreate404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesCreate404Response{} + 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 *SharesCreate404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesCreate404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesCreate404ResponseError{} + 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 *SharesCreate404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesDeleteResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesDeleteResponse{} + 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 *SharesDeleteResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesDeleteResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesDeleteResponseError{} + 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 *SharesDeleteResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange400Response{} + 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 *SharesExchange400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange400ResponseError{} + 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 *SharesExchange400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange403Response{} + 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 *SharesExchange403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange403ResponseError{} + 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 *SharesExchange403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange404Response{} + 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 *SharesExchange404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange404ResponseError{} + 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 *SharesExchange404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange410Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange410Response{} + 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 *SharesExchange410Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange410ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange410ResponseError{} + 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 *SharesExchange410ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange422Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange422Response{} + 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 *SharesExchange422Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesExchange422ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesExchange422ResponseError{} + 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 *SharesExchange422ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesGet404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesGet404Response{} + 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 *SharesGet404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesGet404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesGet404ResponseError{} + 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 *SharesGet404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesList400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesList400Response{} + 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 *SharesList400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesList400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesList400ResponseError{} + 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 *SharesList400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesUpdate400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesUpdate400Response{} + 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 *SharesUpdate400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesUpdate400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesUpdate400ResponseError{} + 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 *SharesUpdate400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesUpdate404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesUpdate404Response{} + 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 *SharesUpdate404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringSharesUpdate404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &SharesUpdate404ResponseError{} + 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 *SharesUpdate404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsCreate400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsCreate400Response{} + 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 *TenantsCreate400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsCreate400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsCreate400ResponseError{} + 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 *TenantsCreate400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsDeleteResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsDeleteResponse{} + 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 *TenantsDeleteResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsDeleteResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsDeleteResponseError{} + 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 *TenantsDeleteResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsGet404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsGet404Response{} + 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 *TenantsGet404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsGet404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsGet404ResponseError{} + 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 *TenantsGet404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsList400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsList400Response{} + 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 *TenantsList400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsList400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsList400ResponseError{} + 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 *TenantsList400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsResumeResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsResumeResponse{} + 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 *TenantsResumeResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsResumeResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsResumeResponseError{} + 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 *TenantsResumeResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsSuspendResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsSuspendResponse{} + 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 *TenantsSuspendResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsSuspendResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsSuspendResponseError{} + 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 *TenantsSuspendResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsUsage400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsUsage400Response{} + 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 *TenantsUsage400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsUsage400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsUsage400ResponseError{} + 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 *TenantsUsage400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsUsage404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsUsage404Response{} + 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 *TenantsUsage404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTenantsUsage404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TenantsUsage404ResponseError{} + 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 *TenantsUsage404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensIssue400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensIssue400Response{} + 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 *TokensIssue400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensIssue400ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensIssue400ResponseError{} + 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 *TokensIssue400ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensIssue403Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensIssue403Response{} + 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 *TokensIssue403Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensIssue403ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensIssue403ResponseError{} + 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 *TokensIssue403ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensIssue404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensIssue404Response{} + 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 *TokensIssue404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensIssue404ResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensIssue404ResponseError{} + 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 *TokensIssue404ResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensRevokeResponse(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensRevokeResponse{} + 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 *TokensRevokeResponse + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringTokensRevokeResponseError(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &TokensRevokeResponseError{} + 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 *TokensRevokeResponseError + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestEnumDocAnnotationsCreate400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("Unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("Aborted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Network", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("Network"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("NotFound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsCreate400ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsCreate400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate400ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate400ResponseName("EngineError"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsCreate400ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsCreate400ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsCreate404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("Unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("Aborted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Network", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("Network"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("NotFound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsCreate404ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsCreate404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsCreate404ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsCreate404ResponseName("EngineError"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsCreate404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsCreate404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsDelete404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("Unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("Aborted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Network", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("Network"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("NotFound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsDelete404ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsDelete404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsDelete404ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsDelete404ResponseName("EngineError"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsDelete404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsDelete404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("normal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_multiply", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("multiply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_screen", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("screen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_overlay", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("overlay"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_darken", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("darken"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_lighten", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("lighten"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("color-dodge"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("color-burn"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("hard-light"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("soft-light"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_difference", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("difference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("exclusion"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("hue"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_saturation", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("saturation"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("color"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("luminosity"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality("durable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality("weak"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretIntent(t *testing.T) { + t.Run("NewFromString_replace", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIntentFromString("replace") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretIntent("replace"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIntentFromString("replace") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretReplyType("reply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_group", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretReplyType("group"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("normal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_multiply", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("multiply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_screen", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("screen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_overlay", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("overlay"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_darken", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("darken"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_lighten", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("lighten"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("color-dodge"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("color-burn"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("hard-light"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("soft-light"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_difference", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("difference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("exclusion"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("hue"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_saturation", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("saturation"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("color"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("luminosity"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("solid"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_dashed", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("dashed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_beveled", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("beveled"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_inset", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("inset"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality("durable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality("weak"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleReplyType("reply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_group", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleReplyType("group"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("normal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_multiply", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("multiply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_screen", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("screen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_overlay", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("overlay"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_darken", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("darken"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_lighten", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("lighten"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("color-dodge"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("color-burn"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("hard-light"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("soft-light"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_difference", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("difference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("exclusion"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("hue"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_saturation", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("saturation"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("color"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("luminosity"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon(t *testing.T) { + t.Run("NewFromString_push_pin", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("push-pin") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("push-pin"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_paperclip", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("paperclip") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("paperclip"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_graph", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("graph") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("graph"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_tag", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("tag") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("tag"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("push-pin") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQuality("durable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQuality("weak"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType("reply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_group", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType("group"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefNm{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircle - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircle - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircle - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleFlags{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("lighten"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("color-dodge"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("color-burn"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("difference"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("inset"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily(t *testing.T) { + t.Run("NewFromString_courier", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_courier_bold", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier-bold"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_courier_oblique", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier-oblique"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_helvetica", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica-bold"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_times_roman", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-roman") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-roman"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_times_bold", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-bold"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_times_bold_italic", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-bold-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-bold-italic"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_times_italic", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-italic"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_symbol", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("symbol") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("symbol"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("zapf-dingbats") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality("weak"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextIntent(t *testing.T) { + t.Run("NewFromString_free_text", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachment - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("free-text") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIntent("free-text"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_free_text_callout", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachment - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("free-text-callout") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIntent("free-text-callout"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachment - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("free-text") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("none"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("square"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("circle"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("diamond"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("open-arrow"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("closed-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("butt"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("r-open-arrow"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("r-closed-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("slash"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign(t *testing.T) { + t.Run("NewFromString_left", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("left") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign("left"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_center", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("center") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign("center"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_right", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("right") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign("right"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("left") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeText - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeText - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeText - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRect{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlight - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlight - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlight - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInk - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInk - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInk - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkColor{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkFlags{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRect{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemInkRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLine - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLine - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLine - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("dashed"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("beveled"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("inset"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality("weak"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkIntent(t *testing.T) { + t.Run("NewFromString_ink_highlight", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIntentFromString("ink-highlight") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkIntent("ink-highlight"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIntentFromString("ink-highlight") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineLineEndings - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLineEndings - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLineEndings - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineLinePoints - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLinePoints - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLinePoints - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLink - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLink - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLink - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygon - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygon - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygon - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("beveled"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_inset", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("inset"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality("durable"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("none"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("square"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("circle"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("diamond"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("open-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("closed-arrow"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_butt", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("butt"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("r-open-arrow"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("r-closed-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("slash"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("none"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("square"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("circle"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("diamond"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("open-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("butt"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("r-open-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("r-closed-arrow"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_slash", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("slash"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolyline - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolyline - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolyline - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedact - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedact - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedact - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemRedactRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquare - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquare - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquare - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquiggly - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquiggly - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquiggly - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStamp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStamp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("inset"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStamp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeout - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeout - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeout - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemText - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemText - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemText - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("beveled"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_inset", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("inset"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality("durable"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("none"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("square"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("circle"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("diamond"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("open-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("closed-arrow"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_butt", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("butt"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("r-open-arrow"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("r-closed-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("slash"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("none"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("square"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("circle"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("diamond"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("open-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("butt"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("r-open-arrow"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("r-closed-arrow"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_slash", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("slash"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemTextRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderline - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderline - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderline - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("thread"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactFontFamily(t *testing.T) { + t.Run("NewFromString_courier", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_courier_bold", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier-bold"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_courier_oblique", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier-oblique"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_helvetica", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica-bold"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_times_roman", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-roman") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-roman"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_times_bold", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-bold"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_times_bold_italic", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-bold-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-bold-italic"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_times_italic", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-italic"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_symbol", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("symbol") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("symbol"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("zapf-dingbats") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactTextAlign(t *testing.T) { + t.Run("NewFromString_left", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("left") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign("left"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_center", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("center") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign("center"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_right", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("right") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign("right"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("left") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidget - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidget - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidget - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActions{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetRect - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRect - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRect - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - - // 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 DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponsePageState(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - - // 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 DocAnnotationsList200ResponsePageState - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageState - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageState - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponsePageStateRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageStateRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageStateRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsList404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList404Response{} - - // 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 DocAnnotationsList404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsList404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200Response{} - - // 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 DocAnnotationsUpdate200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - - // 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 DocAnnotationsUpdate200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - - // 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - - // 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 DocAnnotationsUpdate200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - - // 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate400Response{} - - // 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 DocAnnotationsUpdate400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate404Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocAnnotationsUpdate404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocAnnotationsUpdate404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocDownloadResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocDownloadResponse{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocDownloadResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocDownloadResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocDownloadResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsExportDataResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsExportDataResponse{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsExportDataResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsExportDataResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsExportDataResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200Response{} - - // 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 DocFormsGet200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} - - // 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 DocFormsGet200ResponseCalculationOrderItemFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseCalculationOrderItemFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseCalculationOrderItemFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} - - // 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 DocFormsGet200ResponseCalculationOrderItemObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseCalculationOrderItemObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseCalculationOrderItemObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - - // 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 DocFormsGet200ResponseFieldsItemCheckbox - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckbox - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckbox - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemCombobox - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCombobox - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemCombobox - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("inset"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxOptionsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxOptionsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxOptionsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemComboboxWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemComboboxWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListbox - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListbox - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListbox - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - - // 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemListboxActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxOptionsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxOptionsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxOptionsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} - - // 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 DocFormsGet200ResponseFieldsItemListboxRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} - - // 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 DocFormsGet200ResponseFieldsItemListboxRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemListboxValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemListboxValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemListboxWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemListboxWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - - // 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 DocFormsGet200ResponseFieldsItemPushbutton - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbutton - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbutton - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} - - // 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 DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - - // 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 DocFormsGet200ResponseFieldsItemRadio - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadio - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadio - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemRadioActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - - // 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - - // 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 DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - - // 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 DocFormsGet200ResponseFieldsItemRadioFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - - // 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 DocFormsGet200ResponseFieldsItemRadioRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemRadioValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - - // 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 DocFormsGet200ResponseFieldsItemRadioWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemRadioWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignature - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignature - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignature - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemSignatureValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemText(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - - // 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 DocFormsGet200ResponseFieldsItemText - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemText - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemText - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - - // 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 DocFormsGet200ResponseFieldsItemTextActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - - // 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 DocFormsGet200ResponseFieldsItemTextFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemTextRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} - - // 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 DocFormsGet200ResponseFieldsItemTextRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemTextValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemTextValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemTextValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - - // 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 DocFormsGet200ResponseFieldsItemTextWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemTextWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - - // 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 DocFormsGet200ResponseFieldsItemUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownActions - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActions - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActions - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormat - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsFormat - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsFormat - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownActionsValidate - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsValidate - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsValidate - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownFlags - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownFlags - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownFlags - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownRefFqn - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownRefFqn - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownRefFqn - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryNone(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryNone{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported{} - - // 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 DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsGet404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsGet404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsGet404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsGet404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsGet404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsImportData200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMeta{} - - // 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 DocFormsImportData200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - - // 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 DocFormsImportData200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocFormsImportData200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsImportData200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsImportData200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData400Response{} - - // 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 DocFormsImportData400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsImportData404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsImportData404Response{} - - // 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 DocFormsImportData404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocFormsImportData404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200Response{} - - // 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 DocFormsReset200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMeta{} - - // 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 DocFormsReset200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj DocFormsReset200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsReset200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsReset200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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 DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - - // 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 DocFormsReset200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - - // 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 DocFormsReset200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsReset200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsReset200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsReset404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsReset404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsReset404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsReset404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsReset404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsSetValue200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - - // 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 DocFormsSetValue200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - - // 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 DocFormsSetValue200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsSetValue200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocFormsSetValue200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue400Response{} - - // 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 DocFormsSetValue400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocFormsSetValue404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocFormsSetValue404Response{} - - // 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 DocFormsSetValue404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocFormsSetValue404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocHead404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocHead404Response{} - - // 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 DocHead404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocHead404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocHead404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocManifest404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocManifest404Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocManifest404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocManifest404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocManifest404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocMetadataGet200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocMetadataGet200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocMetadataGet200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocMetadataGet200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocMetadataGet404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocMetadataGet404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocMetadataGet404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocMetadataGet404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocMetadataGet404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200Response{} - - // 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 DocPagesDelete200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMeta{} - - // 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 DocPagesDelete200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - - // 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 DocPagesDelete200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocPagesDelete200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesDelete200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - - // 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - - // 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 DocPagesDelete400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesDelete404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - - // 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 DocPagesDelete404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesDelete404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesExtract400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesExtract400Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesExtract400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesExtract400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesExtract400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesExtract404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesExtract404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesExtract404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesExtract404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesExtract404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesFlatten200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - - // 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 DocPagesFlatten200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - - // 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 DocPagesFlatten200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesFlatten200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesFlatten400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesFlatten404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesFlatten404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesFlatten404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj DocPagesFlatten404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200Response{} - - // 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 DocPagesInsert200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMeta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsert200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsert200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocPagesInsert200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - - // 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 DocPagesInsert200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsert200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsert400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsert404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsert404Response{} - - // 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 DocPagesInsert404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesInsert404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200Response{} - - // 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 DocPagesInsertBlank200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - - // 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 DocPagesInsertBlank200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - - // 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 DocPagesInsertBlank200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - - // 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 DocPagesInsertBlank200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - - // 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank400Response{} - - // 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 DocPagesInsertBlank400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesInsertBlank404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesInsertBlank404Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesInsertBlank404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesInsertBlank404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesMove200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMeta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesMove200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - - // 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 DocPagesMove200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocPagesMove200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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 DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesMove200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesMove200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - - // 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 DocPagesMove400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj DocPagesMove400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj DocPagesMove400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesMove404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - - // 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 DocPagesMove404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj DocPagesMove404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj DocPagesMove404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200Response{} - - // 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 DocPagesRotate200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMeta{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesRotate200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesRotate200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality("weak"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent(t *testing.T) { + t.Run("NewFromString_strikeout_text_edit", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString("strikeout-text-edit") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent("strikeout-text-edit"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesRotate200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString("strikeout-text-edit") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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 DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - - // 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 DocPagesRotate200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - - // 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate400Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesRotate400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocPagesRotate404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocPagesRotate404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocPagesRotate404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocPagesRotate404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocRedactionsApply200Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMeta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMeta{} - - // 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 DocRedactionsApply200ResponseMeta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMeta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMeta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - - // 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 DocRedactionsApply200ResponseMetaAffectedPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} - - // 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 DocRedactionsApply200ResponseMetaAffectedPagesItemRevision - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItemRevision - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - - // 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 DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocRedactionsApply200ResponseMetaCacheDelta - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaCacheDelta - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - - // 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 DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply400Response{} - - // 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 DocRedactionsApply400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRedactionsApply404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRedactionsApply404Response{} - - // 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 DocRedactionsApply404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocRedactionsApply404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocRenderResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocRenderResponse{} - - // 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 DocRenderResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocRenderResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocRenderResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocText404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocText404Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocText404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocText404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocText404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsCommit400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsCommit400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsCommit400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsCommit400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsCommit400ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsCommit400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsCommit404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsCommit404Response{} - - // 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 DocumentsCommit404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsCommit404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsCommit404ResponseError{} - - // 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 DocumentsCommit404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocumentsCommit404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDelete403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDelete403Response{} - - // 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 DocumentsDelete403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDelete403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDelete403ResponseError{} - - // 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 DocumentsDelete403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDelete404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDelete404Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsDelete404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDelete404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDelete404ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsDelete404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocumentsDelete404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDownload403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDownload403Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsDownload403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDownload403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDownload403ResponseError{} - - // 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 DocumentsDownload403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDownload404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDownload404Response{} - - // 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 DocumentsDownload404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsDownload404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsDownload404ResponseError{} - - // 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 DocumentsDownload404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocumentsDownload404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsGet403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsGet403Response{} - - // 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 DocumentsGet403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocumentsGet403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocumentsGet403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsGet403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsGet403ResponseError{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsGet403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocumentsGet403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocumentsGet403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsGet404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsGet404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsGet404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocumentsGet404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocumentsGet404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsGet404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsGet404ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsGet404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocumentsGet404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocumentsGet404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom202Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom202Response{} - - // 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 DocumentsImportFrom202Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom202Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom202Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom202ResponseDocument(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom202ResponseDocument{} - - // 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 DocumentsImportFrom202ResponseDocument - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom202ResponseDocument - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom202ResponseDocument - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom400Response{} - - // 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 DocumentsImportFrom400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom400ResponseError{} - - // 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 DocumentsImportFrom400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom403Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsImportFrom403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom403ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsImportFrom403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom502Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom502Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsImportFrom502Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom502Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom502Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsImportFrom502ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsImportFrom502ResponseError{} - - // 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 DocumentsImportFrom502ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom502ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocumentsImportFrom502ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsInit400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsInit400Response{} - - // 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 DocumentsInit400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocumentsInit400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocumentsInit400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsInit400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsInit400ResponseError{} - - // 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 DocumentsInit400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocumentsInit400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocumentsInit400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsList400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsList400Response{} - - // 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 DocumentsList400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocumentsList400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocumentsList400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsList400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsList400ResponseError{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsList400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj DocumentsList400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj DocumentsList400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsThumbnailResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsThumbnailResponse{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsThumbnailResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj DocumentsThumbnailResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj DocumentsThumbnailResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsThumbnailResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsThumbnailResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled DocumentsThumbnailResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj DocumentsThumbnailResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj DocumentsThumbnailResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsUploadProxy400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsUploadProxy400Response{} - - // 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 DocumentsUploadProxy400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsUploadProxy400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsUploadProxy400ResponseError{} - - // 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 DocumentsUploadProxy400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsUploadProxy409Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsUploadProxy409Response{} - - // 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 DocumentsUploadProxy409Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy409Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy409Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingDocumentsUploadProxy409ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocumentsUploadProxy409ResponseError{} - - // 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 DocumentsUploadProxy409ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy409ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj DocumentsUploadProxy409ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingEngineErrorPayload(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &EngineErrorPayload{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled EngineErrorPayload - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj EngineErrorPayload - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj EngineErrorPayload - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesCreate400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesCreate400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesCreate400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj SharesCreate400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj SharesCreate400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesCreate400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesCreate400ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesCreate400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj SharesCreate400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj SharesCreate400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesCreate403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesCreate403Response{} - - // 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 SharesCreate403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj SharesCreate403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj SharesCreate403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesCreate403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesCreate403ResponseError{} - - // 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 SharesCreate403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj SharesCreate403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj SharesCreate403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesCreate404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesCreate404Response{} - - // 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 SharesCreate404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj SharesCreate404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj SharesCreate404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesCreate404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesCreate404ResponseError{} - - // 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 SharesCreate404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj SharesCreate404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj SharesCreate404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesDeleteResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesDeleteResponse{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesDeleteResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj SharesDeleteResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj SharesDeleteResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesDeleteResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesDeleteResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesDeleteResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj SharesDeleteResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj SharesDeleteResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesExchange400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj SharesExchange400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj SharesExchange400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange400ResponseError{} - - // 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 SharesExchange400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj SharesExchange400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj SharesExchange400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange403Response{} - - // 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 SharesExchange403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj SharesExchange403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj SharesExchange403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange403ResponseError{} - - // 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 SharesExchange403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj SharesExchange403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj SharesExchange403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange404Response{} - - // 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 SharesExchange404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj SharesExchange404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj SharesExchange404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange404ResponseError{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesExchange404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj SharesExchange404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj SharesExchange404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange410Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange410Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesExchange410Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj SharesExchange410Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj SharesExchange410Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange410ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange410ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesExchange410ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj SharesExchange410ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj SharesExchange410ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange422Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange422Response{} - - // 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 SharesExchange422Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj SharesExchange422Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj SharesExchange422Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesExchange422ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesExchange422ResponseError{} - - // 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 SharesExchange422ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj SharesExchange422ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj SharesExchange422ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesGet404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesGet404Response{} - - // 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 SharesGet404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj SharesGet404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj SharesGet404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesGet404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesGet404ResponseError{} - - // 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 SharesGet404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj SharesGet404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj SharesGet404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesList400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesList400Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesList400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj SharesList400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj SharesList400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesList400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesList400ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesList400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj SharesList400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj SharesList400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesUpdate400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesUpdate400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled SharesUpdate400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj SharesUpdate400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj SharesUpdate400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesUpdate400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesUpdate400ResponseError{} - - // 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 SharesUpdate400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj SharesUpdate400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj SharesUpdate400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesUpdate404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesUpdate404Response{} - - // 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 SharesUpdate404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj SharesUpdate404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj SharesUpdate404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingSharesUpdate404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - // Arrange - obj := &SharesUpdate404ResponseError{} - - // 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 SharesUpdate404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj SharesUpdate404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj SharesUpdate404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsCreate400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsCreate400Response{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("exclusion"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsCreate400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj TenantsCreate400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj TenantsCreate400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsCreate400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsCreate400ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("luminosity"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsCreate400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextIcon(t *testing.T) { + t.Run("NewFromString_comment", func(t *testing.T) { t.Parallel() - var obj TenantsCreate400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("comment") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("comment"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_key", func(t *testing.T) { t.Parallel() - var obj TenantsCreate400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("key") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("key"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsDeleteResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_note", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsDeleteResponse{} - - // 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 TenantsDeleteResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("note") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("note"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_help", func(t *testing.T) { t.Parallel() - var obj TenantsDeleteResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("help") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("help"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_new_paragraph", func(t *testing.T) { t.Parallel() - var obj TenantsDeleteResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("new-paragraph") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("new-paragraph"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsDeleteResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_paragraph", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsDeleteResponseError{} - - // 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 TenantsDeleteResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("paragraph") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("paragraph"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_insert", func(t *testing.T) { t.Parallel() - var obj TenantsDeleteResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("insert") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("insert"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { - t.Parallel() - var obj TenantsDeleteResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("comment") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestJSONMarshalingTenantsGet404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsGet404Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality("durable"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality("weak"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsGet404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { - t.Parallel() - var obj TenantsGet404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalEmptyObject", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - var obj TenantsGet404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextReplyType("reply"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsGet404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsGet404ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextReplyType("group"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsGet404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj TenantsGet404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj TenantsGet404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsList400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsList400Response{} - - // 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 TenantsList400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj TenantsList400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj TenantsList400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsList400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsList400ResponseError{} - - // 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 TenantsList400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj TenantsList400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj TenantsList400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsResumeResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsResumeResponse{} - - // 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 TenantsResumeResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj TenantsResumeResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj TenantsResumeResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsResumeResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsResumeResponseError{} - - // 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 TenantsResumeResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj TenantsResumeResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj TenantsResumeResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsSuspendResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsSuspendResponse{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsSuspendResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj TenantsSuspendResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj TenantsSuspendResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsSuspendResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsSuspendResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsSuspendResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj TenantsSuspendResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj TenantsSuspendResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsUsage400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsUsage400Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled TenantsUsage400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj TenantsUsage400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj TenantsUsage400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsUsage400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsUsage400ResponseError{} - - // 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 TenantsUsage400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj TenantsUsage400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj TenantsUsage400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsUsage404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsUsage404Response{} - - // 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 TenantsUsage404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj TenantsUsage404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj TenantsUsage404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTenantsUsage404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TenantsUsage404ResponseError{} - - // 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 TenantsUsage404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj TenantsUsage404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj TenantsUsage404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensIssue400Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensIssue400Response{} - - // 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 TokensIssue400Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj TokensIssue400Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj TokensIssue400Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensIssue400ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensIssue400ResponseError{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled TokensIssue400ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj TokensIssue400ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj TokensIssue400ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensIssue403Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensIssue403Response{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled TokensIssue403Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj TokensIssue403Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj TokensIssue403Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensIssue403ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensIssue403ResponseError{} + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) - // 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") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) - // Unmarshal back and verify round-trip - var unmarshaled TokensIssue403ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj TokensIssue403ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj TokensIssue403ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensIssue404Response(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensIssue404Response{} - - // 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 TokensIssue404Response - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj TokensIssue404Response - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj TokensIssue404Response - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensIssue404ResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensIssue404ResponseError{} - - // 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 TokensIssue404ResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj TokensIssue404ResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj TokensIssue404ResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensRevokeResponse(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensRevokeResponse{} - - // 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 TokensRevokeResponse - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj TokensRevokeResponse - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj TokensRevokeResponse - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) -} -func TestJSONMarshalingTokensRevokeResponseError(t *testing.T) { - t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - // Arrange - obj := &TokensRevokeResponseError{} - - // 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") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + }) - // Unmarshal back and verify round-trip - var unmarshaled TokensRevokeResponseError - err = json.Unmarshal(data, &unmarshaled) - assert.NoError(t, err, "round-trip unmarshal should succeed") + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj TokensRevokeResponseError - err := json.Unmarshal([]byte(`{invalid json}`), &obj) - assert.Error(t, err, "unmarshaling invalid JSON should return an error") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj TokensRevokeResponseError - err := json.Unmarshal([]byte(`{}`), &obj) - assert.NoError(t, err, "unmarshaling empty object should succeed") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringAdminErrorPayload(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &AdminErrorPayload{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *AdminErrorPayload - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringAdminErrorPayloadError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &AdminErrorPayloadError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *AdminErrorPayloadError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsCreate200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsCreate200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsCreate404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsDelete200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsDelete200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsDelete404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaret - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircle - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachment - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("overlay"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("lighten"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("exclusion"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("luminosity"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("named"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeText - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlight - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInk - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("overlay"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("lighten"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLine - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("exclusion"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("luminosity"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("overlay"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("lighten"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("exclusion"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("luminosity"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("inset"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily(t *testing.T) { + t.Run("NewFromString_text", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("text") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("text"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_checkbox", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("checkbox") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("checkbox"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_radio", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("radio") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("radio"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_combobox", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("combobox") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("combobox"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_listbox", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("listbox") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("listbox"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_pushbutton", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("pushbutton") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("pushbutton"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_signature", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("signature") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("signature"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("unknown"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("text") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily(t *testing.T) { + t.Run("NewFromString_courier", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_courier_bold", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier-bold"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_courier_oblique", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier-oblique"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_helvetica", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica-bold"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_times_roman", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-roman") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-roman"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_times_bold", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-bold"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_times_bold_italic", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-bold-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-bold-italic"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_times_italic", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-italic"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_symbol", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("symbol") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("symbol"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("zapf-dingbats") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign(t *testing.T) { + t.Run("NewFromString_left", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("left") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign("left"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_center", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("center") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign("center"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_right", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("right") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign("right"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("left") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsList404ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList404ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList404ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsList404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsList404ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList404ResponseName("EngineError"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("overlay"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("lighten"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("exclusion"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode("luminosity"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent(t *testing.T) { + t.Run("NewFromString_replace", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentFromString("replace") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent("replace"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentFromString("replace") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("named"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("normal"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("multiply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("screen"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("darken"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("color-dodge"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("color-burn"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("hard-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("difference"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("hue"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("color"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle("inset"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponsePageState(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageState{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponsePageState - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageStateRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsList404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsUpdate404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocDownloadResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocDownloadResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsExportDataResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsExportDataResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsExportDataResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItemFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItemObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListbox{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemListboxActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("StringMethod_NilReceiver", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadio{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemRadioActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("overlay"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("lighten"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("exclusion"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode("luminosity"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon(t *testing.T) { + t.Run("NewFromString_push_pin", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString("push-pin") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon("push-pin"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_paperclip", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString("paperclip") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon("paperclip"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_graph", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString("graph") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon("graph"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_tag", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString("tag") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon("tag"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString("push-pin") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignature{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemText(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemText{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemTextActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemTextValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActions(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActions{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActions - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsCalculate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsFormat(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormat{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormat - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsFormatRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsKeystroke(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystroke - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsValidate(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidate{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidate - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownActionsValidateRoot - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRefFqn - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryNone(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryNone{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsGet404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsGet404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsImportData200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsImportData400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsImportData400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsImportData404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsImportData404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsReset200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsReset200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsReset404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocFormsReset404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsSetValue200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsSetValue200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocFormsSetValue404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocFormsSetValue404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocHead404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocHead404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocManifest404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocManifest404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocManifest404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocMetadataGet200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocMetadataGet200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocMetadataGet404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocMetadataGet404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocMetadataGet404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesDelete200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesDelete400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesDelete400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesDelete404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocPagesDelete404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesExtract400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocPagesExtract400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesExtract400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesExtract404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocPagesExtract404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesFlatten400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesFlatten404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocPagesFlatten404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesFlatten404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesInsert200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("multiply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("multiply"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("screen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("overlay") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("overlay"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("darken") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("lighten") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("lighten"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("color-dodge") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("color-burn") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("color-burn"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("hard-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("soft-light") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("soft-light"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("exclusion"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("saturation"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode("luminosity"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesInsert400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle("dashed"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsert404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsert404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle("inset"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesInsertBlank200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesInsertBlank200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesInsertBlank200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily(t *testing.T) { + t.Run("NewFromString_courier", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("courier") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("courier"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_courier_bold", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("courier-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("courier-bold"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("courier-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_courier_oblique", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("courier-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("courier-oblique"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_helvetica", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("helvetica") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("helvetica"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("helvetica-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("helvetica-bold"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("helvetica-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("helvetica-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_times_roman", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("times-roman") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("times-roman"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_times_bold", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("times-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("times-bold"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_times_bold_italic", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("times-bold-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("times-bold-italic"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_times_italic", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("times-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("times-italic"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_symbol", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("symbol") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("symbol"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("zapf-dingbats") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontFamilyFromString("courier") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesInsertBlank400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - obj := &DocPagesInsertBlank400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality("weak"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesInsertBlank404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesInsertBlank404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesInsertBlank404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityFromString("durable") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesMove200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent(t *testing.T) { + t.Run("NewFromString_free_text", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFromString("free-text") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent("free-text"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_free_text_callout", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFromString("free-text-callout") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent("free-text-callout"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesMove200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFromString("free-text") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("none"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("square"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("circle"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("diamond"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("open-arrow"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("closed-arrow"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("butt"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("r-open-arrow"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("r-closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding("slash"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeFromString("reply") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType("group"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesMove400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &DocPagesMove400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeFromString("reply") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesMove404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign(t *testing.T) { + t.Run("NewFromString_left", func(t *testing.T) { t.Parallel() - obj := &DocPagesMove404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString("left") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign("left"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_center", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString("center") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign("center"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_right", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString("right") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign("right"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString("left") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocPagesRotate404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocPagesRotate404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocRedactionsApply200Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMeta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMeta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocRedactionsApply200ResponseMeta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemRevision{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemRevision - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMetaCacheDelta(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaCacheDelta{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDelta - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItem{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDeltaPagesItem - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply200ResponseMetaCacheDeltaPagesItemCache - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocRedactionsApply404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocRedactionsApply404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocRedactionsApply404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocRenderResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocRenderResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocRenderResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocText404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocText404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocText404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsCommit400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocumentsCommit400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsCommit400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocumentsCommit400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocumentsCommit400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocumentsCommit400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsCommit404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocumentsCommit404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocumentsCommit404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsCommit404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocumentsCommit404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocumentsCommit404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDelete403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocumentsDelete403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocumentsDelete403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDelete403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocumentsDelete403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocumentsDelete403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDelete404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocumentsDelete404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocumentsDelete404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDelete404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocumentsDelete404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocumentsDelete404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDownload403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocumentsDownload403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocumentsDownload403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDownload403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocumentsDownload403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocumentsDownload403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsDownload404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocumentsDownload404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsDownload404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocumentsDownload404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocumentsDownload404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocumentsDownload404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsGet403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocumentsGet403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsGet403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocumentsGet403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocumentsGet403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocumentsGet403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsGet404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocumentsGet404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocumentsGet404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsGet404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocumentsGet404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocumentsGet404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom202Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom202Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom202ResponseDocument(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom202ResponseDocument{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom202ResponseDocument - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsImportFrom502Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom502Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsImportFrom502Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocumentsImportFrom502ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &DocumentsImportFrom502ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *DocumentsImportFrom502ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsInit400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &DocumentsInit400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocumentsInit400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringDocumentsInit400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &DocumentsInit400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *DocumentsInit400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsList400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &DocumentsList400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *DocumentsList400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsList400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &DocumentsList400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *DocumentsList400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsThumbnailResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &DocumentsThumbnailResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *DocumentsThumbnailResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsThumbnailResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &DocumentsThumbnailResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *DocumentsThumbnailResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsUploadProxy400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &DocumentsUploadProxy400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsUploadProxy400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &DocumentsUploadProxy400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsUploadProxy409Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &DocumentsUploadProxy409Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy409Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringDocumentsUploadProxy409ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &DocumentsUploadProxy409ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *DocumentsUploadProxy409ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringEngineErrorPayload(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &EngineErrorPayload{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *EngineErrorPayload - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringSharesCreate400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &SharesCreate400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *SharesCreate400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringSharesCreate400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &SharesCreate400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesCreate400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringSharesCreate403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &SharesCreate403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *SharesCreate403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringSharesCreate403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &SharesCreate403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *SharesCreate403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringSharesCreate404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &SharesCreate404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *SharesCreate404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringSharesCreate404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &SharesCreate404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *SharesCreate404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringSharesDeleteResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &SharesDeleteResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *SharesDeleteResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringSharesDeleteResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &SharesDeleteResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *SharesDeleteResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &SharesExchange400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *SharesExchange400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &SharesExchange400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *SharesExchange400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &SharesExchange403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *SharesExchange403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &SharesExchange403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesExchange403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringSharesExchange404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &SharesExchange404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *SharesExchange404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &SharesExchange404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesExchange404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringSharesExchange410Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &SharesExchange410Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *SharesExchange410Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange410ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &SharesExchange410ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *SharesExchange410ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange422Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &SharesExchange422Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *SharesExchange422Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringSharesExchange422ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &SharesExchange422ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *SharesExchange422ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringSharesGet404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &SharesGet404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *SharesGet404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringSharesGet404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &SharesGet404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *SharesGet404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringSharesList400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &SharesList400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *SharesList400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringSharesList400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &SharesList400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *SharesList400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringSharesUpdate400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { - t.Parallel() - obj := &SharesUpdate400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *SharesUpdate400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringSharesUpdate400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &SharesUpdate400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesUpdate400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringSharesUpdate404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &SharesUpdate404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *SharesUpdate404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringSharesUpdate404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &SharesUpdate404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *SharesUpdate404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringTenantsCreate400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &TenantsCreate400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *TenantsCreate400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsCreate400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &TenantsCreate400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *TenantsCreate400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsDeleteResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &TenantsDeleteResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *TenantsDeleteResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsDeleteResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &TenantsDeleteResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *TenantsDeleteResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsGet404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &TenantsGet404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *TenantsGet404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsGet404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &TenantsGet404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *TenantsGet404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsList400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &TenantsList400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *TenantsList400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsList400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &TenantsList400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *TenantsList400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsResumeResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &TenantsResumeResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *TenantsResumeResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsResumeResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &TenantsResumeResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsResumeResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringTenantsSuspendResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &TenantsSuspendResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *TenantsSuspendResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsSuspendResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &TenantsSuspendResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TenantsSuspendResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringTenantsUsage400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - obj := &TenantsUsage400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - var obj *TenantsUsage400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsUsage400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - obj := &TenantsUsage400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - var obj *TenantsUsage400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsUsage404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - obj := &TenantsUsage404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - var obj *TenantsUsage404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) -} -func TestStringTenantsUsage404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - obj := &TenantsUsage404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - var obj *TenantsUsage404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) -} -func TestStringTokensIssue400Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - obj := &TokensIssue400Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - var obj *TokensIssue400Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) -} -func TestStringTokensIssue400ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - obj := &TokensIssue400ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - var obj *TokensIssue400ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestStringTokensIssue403Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - obj := &TokensIssue403Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - var obj *TokensIssue403Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) -} -func TestStringTokensIssue403ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - obj := &TokensIssue403ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - var obj *TokensIssue403ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestStringTokensIssue404Response(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - obj := &TokensIssue404Response{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - var obj *TokensIssue404Response - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) -} -func TestStringTokensIssue404ResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - obj := &TokensIssue404ResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TokensIssue404ResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestStringTokensRevokeResponse(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - obj := &TokensRevokeResponse{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - var obj *TokensRevokeResponse - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) -} -func TestStringTokensRevokeResponseError(t *testing.T) { - t.Run("StringMethod", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - obj := &TokensRevokeResponseError{} - result := obj.String() - assert.NotEmpty(t, result, "String() should return a non-empty representation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) - t.Run("StringMethod_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *TokensRevokeResponseError - result := obj.String() - assert.Equal(t, "", result, "String() should return for nil receiver") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) } -func TestEnumDocAnnotationsCreate400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("InvalidArg") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocNotOpen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocOpenFailed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocPasswordRequired") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("SharePasswordRequired") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Aborted") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Network", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Network") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Unauthenticated") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Forbidden") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("NotFound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("WireFormat") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("InvalidReference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("LayerVersionConflict") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("NotImplemented") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("MalformedPdf") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsCreate400ResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsCreate400ResponseCodeFromString("Unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -361574,21 +686033,35 @@ func TestEnumDocAnnotationsCreate400ResponseCode(t *testing.T) { }) } -func TestEnumDocAnnotationsCreate400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate400ResponseNameFromString("EngineError") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate400ResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsCreate400ResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsCreate400ResponseNameFromString("EngineError") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -361596,147 +686069,147 @@ func TestEnumDocAnnotationsCreate400ResponseName(t *testing.T) { }) } -func TestEnumDocAnnotationsCreate404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("InvalidArg") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocNotOpen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocOpenFailed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocPasswordRequired") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("SharePasswordRequired") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Aborted") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Network", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Network") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Unauthenticated") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Forbidden") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("NotFound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("WireFormat") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("InvalidReference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("LayerVersionConflict") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("NotImplemented") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("MalformedPdf") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsCreate404ResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsCreate404ResponseCodeFromString("Unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -361744,21 +686217,35 @@ func TestEnumDocAnnotationsCreate404ResponseCode(t *testing.T) { }) } -func TestEnumDocAnnotationsCreate404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsCreate404ResponseNameFromString("EngineError") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsCreate404ResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsCreate404ResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsCreate404ResponseNameFromString("EngineError") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -361766,147 +686253,155 @@ func TestEnumDocAnnotationsCreate404ResponseName(t *testing.T) { }) } -func TestEnumDocAnnotationsDelete404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("InvalidArg") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("multiply"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocNotOpen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocOpenFailed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocPasswordRequired") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("SharePasswordRequired") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Aborted") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("color-burn"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Network", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Network") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Unauthenticated") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Forbidden") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("NotFound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("WireFormat") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("InvalidReference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) }) - t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("NotImplemented") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("MalformedPdf") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsDelete404ResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsDelete404ResponseCodeFromString("Unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -361914,21 +686409,28 @@ func TestEnumDocAnnotationsDelete404ResponseCode(t *testing.T) { }) } -func TestEnumDocAnnotationsDelete404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsDelete404ResponseNameFromString("EngineError") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsDelete404ResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType("reply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_group", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsDelete404ResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsDelete404ResponseNameFromString("EngineError") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -361936,147 +686438,147 @@ func TestEnumDocAnnotationsDelete404ResponseName(t *testing.T) { }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362084,35 +686586,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362120,147 +686622,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362268,35 +686770,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRootTyp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362304,147 +686806,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurWarning }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362452,35 +686954,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362488,147 +686990,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362636,35 +687138,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362672,147 +687174,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362820,35 +687322,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -362856,147 +687358,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363004,35 +687506,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363040,147 +687542,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363188,35 +687690,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363224,147 +687726,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363372,35 +687874,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363408,147 +687910,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363556,35 +688058,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisib }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363592,147 +688094,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisib }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363740,35 +688242,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363776,147 +688278,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363924,35 +688426,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -363960,126 +688462,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364087,28 +688589,71 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretBlendMode(t *testi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle("solid"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_dashed", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle("dashed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_beveled", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle("beveled"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_inset", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle("inset"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString("solid") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364116,21 +688661,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretIdentityQuality(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretIntent(t *testing.T) { - t.Run("NewFromString_replace", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent(t *testing.T) { + t.Run("NewFromString_ink_highlight", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIntentFromString("replace") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentFromString("ink-highlight") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretIntent("replace"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent("ink-highlight"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIntentFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretIntentFromString("replace") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentFromString("ink-highlight") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364138,28 +688683,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretIntent(t *testing. }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCaretReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCaretReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364167,147 +688712,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCaretReplyType(t *testi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364315,35 +688860,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364351,147 +688896,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364499,35 +689044,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364535,147 +689080,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364683,35 +689228,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364719,147 +689264,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364867,35 +689412,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -364903,147 +689448,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365051,35 +689596,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365087,147 +689632,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365235,35 +689780,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365271,147 +689816,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365419,35 +689964,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365455,147 +690000,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365603,35 +690148,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365639,147 +690184,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365787,35 +690332,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365823,147 +690368,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -365971,35 +690516,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366007,147 +690552,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366155,35 +690700,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366191,126 +690736,283 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("difference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("difference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("exclusion") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("exclusion"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hue", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("hue") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("hue"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_saturation", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("saturation") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("saturation"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_color", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("color") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("color"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("luminosity") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode("luminosity"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString("solid") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle("solid"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_dashed", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString("dashed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle("dashed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_beveled", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString("beveled") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle("beveled"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_inset", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle("inset"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString("solid") + 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() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString("durable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality("durable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_weak", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString("weak") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality("weak"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString("durable") + 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() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("none") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("none"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_square", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("square") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("square"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_circle", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("circle") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("circle"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_diamond", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("diamond") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("diamond"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_open_arrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("open-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("open-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("closed-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("butt") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("butt"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("r-open-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("r-open-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("r-closed-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("r-closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("slash") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd("slash"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString("none") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366318,71 +691020,84 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleBlendMode(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle(t *testing.T) { - t.Run("NewFromString_solid", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("none") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("solid"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("none"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_dashed", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("dashed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("square") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("dashed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("square"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_beveled", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("beveled") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("circle") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("beveled"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("circle"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_inset", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("diamond") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("diamond"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("NewFromString_open_arrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("open-arrow"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleBorderStyleFromString("solid") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_closed_arrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("closed-arrow"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("butt") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("butt"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("r-open-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("r-open-arrow"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("r-closed-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("r-closed-arrow"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_slash", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("slash") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart("slash"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString("none") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366390,28 +691105,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleIdentityQuality(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemCircleReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemCircleReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366419,147 +691134,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemCircleReplyType(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366567,35 +691282,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsAc }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366603,147 +691318,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsAc }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366751,35 +691466,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366787,147 +691502,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366935,35 +691650,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCu }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -366971,147 +691686,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCu }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367119,35 +691834,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCu }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367155,147 +691870,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCu }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367303,35 +692018,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367339,147 +692054,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367487,35 +692202,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367523,147 +692238,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367671,35 +692386,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367707,147 +692422,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367855,35 +692570,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -367891,147 +692606,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368039,35 +692754,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368075,147 +692790,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368223,35 +692938,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368259,147 +692974,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368407,35 +693122,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368443,169 +693158,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("luminosity") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon(t *testing.T) { - t.Run("NewFromString_push_pin", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("push-pin") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("push-pin"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_paperclip", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("paperclip") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("paperclip"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_graph", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("graph") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("graph"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_tag", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("tag") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon("tag"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIconFromString("push-pin") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368613,28 +693285,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIcon(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368642,28 +693314,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentIdentityQ }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368671,147 +693343,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFileAttachmentReplyType }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368819,35 +693491,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -368855,147 +693527,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369003,35 +693675,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369039,147 +693711,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369187,35 +693859,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369223,147 +693895,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369371,35 +694043,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEx }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369407,147 +694079,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEx }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369555,35 +694227,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369591,147 +694263,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369739,35 +694411,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDow }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369775,147 +694447,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDow }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369923,35 +694595,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -369959,147 +694631,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370107,35 +694779,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClos }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370143,147 +694815,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClos }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370291,35 +694963,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370327,147 +694999,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370475,35 +695147,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370511,147 +695183,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370659,35 +695331,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370695,126 +695367,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370822,42 +695494,42 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextBlendMode(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle(t *testing.T) { t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString("solid") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("solid"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle("solid"), val, "enum value should match expected wire value") }) t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("dashed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString("dashed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("dashed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle("dashed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("beveled") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString("beveled") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("beveled"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle("beveled"), val, "enum value should match expected wire value") }) t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString("inset") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle("inset"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString("solid") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370865,112 +695537,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextBorderStyle(t * }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily(t *testing.T) { - t.Run("NewFromString_courier", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_courier_bold", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier-bold") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier-bold"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier-bold-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_courier_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("courier-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica_bold", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica-bold") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica-bold"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica-bold-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("helvetica-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_times_roman", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-roman") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-roman"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_times_bold", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-bold") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-bold"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_times_bold_italic", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-bold-italic") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-bold-italic"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_times_italic", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("times-italic") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("times-italic"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_symbol", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("symbol") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("symbol"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("zapf-dingbats") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamilyFromString("courier") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -370978,28 +695566,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextFontFamily(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371007,142 +695595,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextIdentityQuality }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextIntent(t *testing.T) { - t.Run("NewFromString_free_text", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("free-text") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIntent("free-text"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_free_text_callout", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("free-text-callout") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextIntent("free-text-callout"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextIntentFromString("free-text") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding(t *testing.T) { - t.Run("NewFromString_none", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("none") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("none"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_square", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("square") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("square"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_circle", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("circle") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("circle"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_diamond", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("diamond") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("diamond"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_open_arrow", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("open-arrow") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("open-arrow"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_closed_arrow", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("closed-arrow") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("closed-arrow"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_butt", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("butt") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("butt"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("named"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_r_open_arrow", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("r-open-arrow") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("r-open-arrow"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("r-closed-arrow") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("r-closed-arrow"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_slash", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("slash") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextLineEnding("slash"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextLineEndingFromString("none") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371150,35 +695743,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextReplyType(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign(t *testing.T) { - t.Run("NewFromString_left", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("left") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign("left"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_center", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("center") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign("center"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_right", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("right") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign("right"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlignFromString("left") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371186,147 +695779,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemFreeTextTextAlign(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371334,35 +695927,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivat }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371370,147 +695963,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivat }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371518,35 +696111,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371554,147 +696147,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371702,35 +696295,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371738,147 +696331,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371886,35 +696479,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -371922,147 +696515,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372070,35 +696663,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372106,147 +696699,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372254,35 +696847,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372290,147 +696883,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372438,35 +697031,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372474,147 +697067,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372622,35 +697215,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372658,147 +697251,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372806,35 +697399,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372842,147 +697435,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -372990,183 +697583,205 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpe }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) assert.Equal(t, val, *ptr) }) -} +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("normal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("normal"), val, "enum value should match expected wire value") + }) -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("multiply"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("color-burn"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString("solid") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString("dashed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle("dashed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString("beveled") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle("beveled"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString("inset") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle("inset"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString("solid") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373174,35 +697789,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373210,155 +697818,169 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("none") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("none"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_multiply", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("square") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("square"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_screen", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("circle") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("circle"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_overlay", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("diamond") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("diamond"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_darken", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("open-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("open-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("closed-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_butt", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("butt") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("butt"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("r-open-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("r-open-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("r-closed-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("r-closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("slash") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd("slash"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("none") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("none"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_square", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("square") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("square"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_circle", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("circle") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("circle"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_diamond", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("diamond") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("diamond"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_open_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("open-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("open-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_closed_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("closed-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("NewFromString_butt", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("butt") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("butt"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_r_open_arrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("r-open-arrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("r-open-arrow"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { + t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("r-closed-arrow") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("r-closed-arrow"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_slash", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("slash") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart("slash"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString("none") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373366,28 +697988,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightIdentityQualit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemHighlightReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemHighlightReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373395,147 +698017,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemHighlightReplyType(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373543,35 +698165,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373579,147 +698201,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373727,35 +698349,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRootType( }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373763,147 +698385,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurWarningsI }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373911,35 +698533,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -373947,147 +698569,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374095,35 +698717,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374131,147 +698753,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374279,35 +698901,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRootType }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374315,147 +698937,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusWarnings }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374463,35 +699085,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374499,147 +699121,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374647,35 +699269,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374683,147 +699305,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374831,35 +699453,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -374867,147 +699489,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375015,35 +699637,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375051,147 +699673,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375199,35 +699821,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375235,147 +699857,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375383,35 +700005,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375419,126 +700041,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375546,42 +700168,112 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkBlendMode(t *testing }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkBorderStyle(t *testing.T) { - t.Run("NewFromString_solid", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily(t *testing.T) { + t.Run("NewFromString_courier", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("courier") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("solid"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("courier"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_dashed", func(t *testing.T) { + t.Run("NewFromString_courier_bold", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("dashed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("courier-bold") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("dashed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("courier-bold"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_beveled", func(t *testing.T) { + t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("beveled") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("courier-bold-oblique") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("beveled"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_inset", func(t *testing.T) { + t.Run("NewFromString_courier_oblique", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("courier-oblique") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("courier-oblique"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_helvetica", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("helvetica") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("helvetica"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_helvetica_bold", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("helvetica-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("helvetica-bold"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("helvetica-bold-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("helvetica-oblique") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_times_roman", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("times-roman") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("times-roman"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_times_bold", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("times-bold") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("times-bold"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_times_bold_italic", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("times-bold-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("times-bold-italic"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_times_italic", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("times-italic") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("times-italic"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_symbol", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("symbol") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("symbol"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("zapf-dingbats") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString("courier") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375589,28 +700281,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkBorderStyle(t *testi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375618,21 +700310,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkIdentityQuality(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkIntent(t *testing.T) { - t.Run("NewFromString_ink_highlight", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIntentFromString("ink-highlight") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkIntent("ink-highlight"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType("reply"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_group", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeFromString("group") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIntentFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkIntentFromString("ink-highlight") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375640,28 +700339,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkIntent(t *testing.T) }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign(t *testing.T) { + t.Run("NewFromString_left", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString("left") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign("left"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_center", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString("center") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemInkReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign("center"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_right", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString("right") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign("right"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemInkReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString("left") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375669,147 +700375,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemInkReplyType(t *testing }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375817,35 +700523,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -375853,147 +700559,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376001,35 +700707,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRootType }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376037,147 +700743,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurWarnings }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376185,35 +700891,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376221,147 +700927,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376369,35 +701075,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376405,147 +701111,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376553,35 +701259,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRootTyp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376589,147 +701295,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusWarning }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376737,35 +701443,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376773,147 +701479,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376921,35 +701627,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -376957,147 +701663,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377105,35 +701811,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377141,147 +701847,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377289,35 +701995,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377325,147 +702031,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377473,35 +702179,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377509,147 +702215,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377657,35 +702363,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377693,126 +702399,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377820,42 +702526,42 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBlendMode(t *testin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBorderStyle(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle(t *testing.T) { t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString("solid") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("solid"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle("solid"), val, "enum value should match expected wire value") }) t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("dashed") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString("dashed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("dashed"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle("dashed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("beveled") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString("beveled") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("beveled"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle("beveled"), val, "enum value should match expected wire value") }) t.Run("NewFromString_inset", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString("inset") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle("inset"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString("solid") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -377863,198 +702569,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBorderStyle(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("weak") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality("weak"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIdentityQualityFromString("durable") - 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() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("none") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("none"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_square", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("square") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("square"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_circle", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("circle") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("circle"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_diamond", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("diamond") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("diamond"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_butt", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("butt") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("butt"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("r-open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("r-open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("r-closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("r-closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_slash", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("slash") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd("slash"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEndFromString("none") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart(t *testing.T) { - t.Run("NewFromString_none", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("none") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("none"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_square", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("square") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("square"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_circle", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("circle") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("circle"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_diamond", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("diamond") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("diamond"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_butt", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("butt") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("butt"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("r-open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("r-open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("r-closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("r-closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_slash", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("slash") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart("slash"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStartFromString("none") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378062,28 +702598,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378091,147 +702627,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineReplyType(t *testin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378239,35 +702775,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378275,147 +702811,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378423,35 +702959,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRootType }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378459,147 +702995,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurWarnings }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378607,35 +703143,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378643,147 +703179,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378791,35 +703327,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378827,147 +703363,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -378975,35 +703511,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRootTyp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379011,147 +703547,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusWarning }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379159,35 +703695,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379195,147 +703731,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379343,35 +703879,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379379,147 +703915,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379527,35 +704063,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379563,147 +704099,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379711,35 +704247,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379747,147 +704283,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379895,35 +704431,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -379931,147 +704467,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380079,35 +704615,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380115,126 +704651,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380242,28 +704778,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkBlendMode(t *testin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380271,28 +704807,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality(t * }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLinkReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380300,147 +704836,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLinkReplyType(t *testin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380448,35 +704984,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380484,147 +705020,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380632,35 +705168,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380668,147 +705204,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380816,35 +705352,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnt }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -380852,147 +705388,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnt }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381000,35 +705536,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381036,147 +705572,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381184,35 +705720,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381220,147 +705756,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381368,35 +705904,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381404,147 +705940,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381552,35 +706088,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381588,147 +706124,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381736,35 +706272,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381772,147 +706308,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381920,35 +706456,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -381956,147 +706492,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382104,35 +706640,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382140,147 +706676,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382288,35 +706824,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisib }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382324,169 +706860,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisib }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("luminosity") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle(t *testing.T) { - t.Run("NewFromString_solid", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("solid") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("solid"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_dashed", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("dashed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("dashed"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_beveled", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("beveled") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("beveled"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_inset", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382494,28 +706987,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382523,28 +707016,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality( }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382552,147 +707045,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonReplyType(t *tes }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382700,35 +707193,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382736,147 +707229,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382884,35 +707377,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -382920,147 +707413,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383068,35 +707561,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383104,147 +707597,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383252,35 +707745,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEx }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383288,147 +707781,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEx }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383436,35 +707929,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383472,147 +707965,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383620,35 +708113,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDow }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383656,147 +708149,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDow }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383804,35 +708297,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383840,147 +708333,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -383988,35 +708481,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClos }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384024,147 +708517,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClos }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384172,35 +708665,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384208,147 +708701,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384356,35 +708849,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384392,147 +708885,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384540,35 +709033,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384576,169 +709069,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("luminosity") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle(t *testing.T) { - t.Run("NewFromString_solid", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("solid") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("solid"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_dashed", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("dashed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("dashed"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_beveled", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("beveled") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("beveled"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_inset", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384746,113 +709196,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle(t * }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("weak") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality("weak"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString("durable") - 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() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("none") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("none"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_square", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("square") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("square"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_circle", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("circle") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("circle"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_diamond", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("diamond") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("diamond"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_butt", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("butt") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("butt"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("r-open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("r-open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("r-closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("r-closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_slash", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("slash") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd("slash"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString("none") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384860,84 +709225,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd( }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart(t *testing.T) { - t.Run("NewFromString_none", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("none") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("none"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_square", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("square") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("square"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_circle", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("circle") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("circle"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_diamond", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("diamond") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("diamond"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_butt", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("butt") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("butt"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_open_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("r-open-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("r-open-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_r_closed_arrow", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("r-closed-arrow") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("r-closed-arrow"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_slash", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent(t *testing.T) { + t.Run("NewFromString_strikeout_text_edit", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("slash") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentFromString("strikeout-text-edit") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart("slash"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent("strikeout-text-edit"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString("none") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentFromString("strikeout-text-edit") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384945,28 +709247,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -384974,147 +709276,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineReplyType(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385122,35 +709424,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385158,147 +709460,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385306,35 +709608,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385342,147 +709644,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385490,35 +709792,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385526,147 +709828,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385674,35 +709976,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385710,147 +710012,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385858,35 +710160,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -385894,147 +710196,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386042,35 +710344,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386078,147 +710380,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386226,35 +710528,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386262,147 +710564,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386410,35 +710712,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386446,147 +710748,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386594,35 +710896,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386630,147 +710932,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386778,35 +711080,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386814,147 +711116,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386962,35 +711264,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -386998,126 +711300,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387125,112 +711427,63 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactBlendMode(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactFontFamily(t *testing.T) { - t.Run("NewFromString_courier", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_courier_bold", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier-bold") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier-bold"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier-bold-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_courier_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("courier-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica_bold", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica-bold") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica-bold"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica-bold-oblique") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon(t *testing.T) { + t.Run("NewFromString_comment", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("helvetica-oblique") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("comment") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("comment"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_roman", func(t *testing.T) { + t.Run("NewFromString_key", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-roman") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("key") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-roman"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("key"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_bold", func(t *testing.T) { + t.Run("NewFromString_note", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-bold") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("note") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-bold"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("note"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_bold_italic", func(t *testing.T) { + t.Run("NewFromString_help", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-bold-italic") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("help") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-bold-italic"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("help"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_italic", func(t *testing.T) { + t.Run("NewFromString_new_paragraph", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("times-italic") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("new-paragraph") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("times-italic"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("new-paragraph"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_symbol", func(t *testing.T) { + t.Run("NewFromString_paragraph", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("symbol") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("paragraph") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("symbol"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("paragraph"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { + t.Run("NewFromString_insert", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("zapf-dingbats") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("insert") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon("insert"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString("courier") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString("comment") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387238,28 +711491,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactFontFamily(t *tes }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387267,64 +711520,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("group") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactReplyType("group"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString("reply") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactTextAlign(t *testing.T) { - t.Run("NewFromString_left", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("left") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign("left"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_center", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("center") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign("center"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_right", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("right") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign("right"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString("left") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387332,147 +711549,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemRedactTextAlign(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387480,35 +711697,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387516,147 +711733,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387664,35 +711881,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387700,147 +711917,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387848,35 +712065,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -387884,147 +712101,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388032,35 +712249,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388068,147 +712285,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388216,35 +712433,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388252,147 +712469,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388400,35 +712617,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388436,147 +712653,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388584,35 +712801,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388620,147 +712837,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388768,35 +712985,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388804,147 +713021,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388952,35 +713169,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -388988,147 +713205,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389136,35 +713353,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389172,147 +713389,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389320,35 +713537,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389356,169 +713573,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("luminosity") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle(t *testing.T) { - t.Run("NewFromString_solid", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("solid") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("solid"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_dashed", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("dashed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("dashed"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_beveled", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("beveled") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("beveled"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_inset", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("inset") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString("solid") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389526,28 +713700,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389555,28 +713729,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquareReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389584,147 +713758,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquareReplyType(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389732,35 +713906,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389768,147 +713942,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389916,35 +714090,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -389952,147 +714126,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390100,35 +714274,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390136,147 +714310,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390284,35 +714458,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEx }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390320,147 +714494,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEx }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390468,35 +714642,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390504,147 +714678,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390652,35 +714826,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDow }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390688,147 +714862,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDow }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390836,35 +715010,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -390872,147 +715046,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391020,35 +715194,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClos }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391056,147 +715230,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClos }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391204,35 +715378,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391240,147 +715414,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391388,35 +715562,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391424,147 +715598,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391572,35 +715746,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391608,126 +715782,126 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode(t *testing.T) { t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("normal"), val, "enum value should match expected wire value") }) t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("multiply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("screen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("overlay"), val, "enum value should match expected wire value") }) t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("darken"), val, "enum value should match expected wire value") }) t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("lighten"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("color-dodge"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("color-burn"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("hard-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("soft-light"), val, "enum value should match expected wire value") }) t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("difference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("exclusion"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("hue"), val, "enum value should match expected wire value") }) t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("saturation"), val, "enum value should match expected wire value") }) t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("color"), val, "enum value should match expected wire value") }) t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode("luminosity"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString("normal") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391735,28 +715909,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality("durable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391764,28 +715938,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType("reply"), val, "enum value should match expected wire value") }) t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391793,147 +715967,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391941,35 +716115,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -391977,147 +716151,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392125,35 +716299,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRootTyp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392161,147 +716335,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurWarning }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392309,35 +716483,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392345,147 +716519,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392493,35 +716667,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392529,147 +716703,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392677,35 +716851,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392713,147 +716887,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392861,35 +717035,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -392897,147 +717071,331 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("reset-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_import_data", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("import-data") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_javascript", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("javascript") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("set-ocg-state") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_transition", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("transition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-3d-view") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRootTypeFromString("unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("malformed-next") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("cycle-dropped") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-remote") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-embedded") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_launch", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("launch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_thread", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("thread") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_uri", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("uri") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_sound", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("sound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_movie", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("movie") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_hide", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("hide") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_named", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("named") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("submit-form") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393045,35 +717403,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393081,147 +717439,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393229,35 +717587,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393265,147 +717623,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393413,35 +717771,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisib }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393449,147 +717807,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisib }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393597,35 +717955,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393633,147 +717991,169 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode(t *testing.T) { + t.Run("NewFromString_normal", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("normal") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("normal"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_multiply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("multiply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("multiply"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_screen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("screen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("screen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_overlay", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("overlay") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("overlay"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_darken", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("darken") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("darken"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_lighten", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("lighten") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("lighten"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_color_dodge", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("color-dodge") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("color-dodge"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_color_burn", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("color-burn") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("color-burn"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_hard_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("hard-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("hard-light"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_soft_light", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("soft-light") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("soft-light"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_difference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("named") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("difference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("difference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_exclusion", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("exclusion") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("exclusion"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_hue", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("hue") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("hue"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_saturation", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("saturation") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("saturation"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_color", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("color") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("color"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_luminosity", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("luminosity") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode("luminosity"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString("normal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle(t *testing.T) { + t.Run("NewFromString_solid", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString("solid") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle("solid"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_dashed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString("dashed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle("dashed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_beveled", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString("beveled") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle("beveled"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_inset", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString("inset") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle("inset"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString("solid") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393781,35 +718161,70 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily(t *testing.T) { + t.Run("NewFromString_text", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("text") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("text"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Run("NewFromString_checkbox", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("checkbox") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("checkbox"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Run("NewFromString_radio", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("radio") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("radio"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_combobox", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("combobox") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("combobox"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_listbox", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("listbox") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("listbox"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_pushbutton", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("pushbutton") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("pushbutton"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_signature", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("signature") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("signature"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString("text") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393817,126 +718232,141 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily(t *testing.T) { + t.Run("NewFromString_courier", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("courier") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("courier"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_multiply", func(t *testing.T) { + t.Run("NewFromString_courier_bold", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("multiply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("courier-bold") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("courier-bold"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_screen", func(t *testing.T) { + t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("screen") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("courier-bold-oblique") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_overlay", func(t *testing.T) { + t.Run("NewFromString_courier_oblique", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("overlay") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("courier-oblique") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("courier-oblique"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_darken", func(t *testing.T) { + t.Run("NewFromString_helvetica", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("darken") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("helvetica") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("helvetica"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("lighten") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("helvetica-bold") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("helvetica-bold"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("color-dodge") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("helvetica-bold-oblique") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("color-burn") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("helvetica-oblique") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_times_roman", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("hard-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("times-roman") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("times-roman"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_times_bold", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("soft-light") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("times-bold") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("times-bold"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_times_bold_italic", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("difference") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("times-bold-italic") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("times-bold-italic"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_times_italic", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("exclusion") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("times-italic") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("times-italic"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_symbol", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("hue") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("symbol") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("symbol"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("saturation") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("zapf-dingbats") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString("courier") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality(t *testing.T) { + t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("color") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityFromString("durable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality("durable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_weak", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("luminosity") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityFromString("weak") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampBlendMode("luminosity"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality("weak"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString("normal") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityFromString("durable") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393944,28 +718374,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampBlendMode(t *testi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType(t *testing.T) { + t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString("reply") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType("reply"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_group", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("weak") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString("group") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType("group"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString("durable") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString("reply") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -393973,28 +718403,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign(t *testing.T) { + t.Run("NewFromString_left", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString("left") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign("left"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_center", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("group") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString("center") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStampReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign("center"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_right", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString("right") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign("right"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString("reply") + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString("left") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394002,147 +718439,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStampReplyType(t *testi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocAnnotationsListAll404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("named") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394150,35 +718587,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivat }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocAnnotationsListAll404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394186,147 +718609,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivat }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocAnnotationsListAll409ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("launch") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("thread") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("uri") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("sound") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("movie") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("hide") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("named") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("submit-form") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("reset-form") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("import-data") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("javascript") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("rendition") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("transition") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll409ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRootTypeFromString("unknown") + val, err := NewDocAnnotationsListAll409ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394334,35 +718757,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocAnnotationsListAll409ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsListAll409ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsListAll409ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsListAll409ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsListAll409ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394370,147 +718779,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocAnnotationsUpdate400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("named") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsUpdate400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394518,35 +718927,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocAnnotationsUpdate400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsUpdate400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsUpdate400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsUpdate400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394554,147 +718949,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocAnnotationsUpdate404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("launch") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("thread") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("uri") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("sound") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("movie") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("hide") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("named") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("transition") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsUpdate404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394702,35 +719097,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocAnnotationsUpdate404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocAnnotationsUpdate404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocAnnotationsUpdate404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocAnnotationsUpdate404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocAnnotationsUpdate404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394738,147 +719119,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocDownloadResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("unknown") + val, err := NewDocDownloadResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto") + val, err := NewDocDownloadResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocDownloadResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocDownloadResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("launch") + val, err := NewDocDownloadResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("thread") + val, err := NewDocDownloadResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("uri") + val, err := NewDocDownloadResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("sound") + val, err := NewDocDownloadResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("movie") + val, err := NewDocDownloadResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("hide") + val, err := NewDocDownloadResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("named") + val, err := NewDocDownloadResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("submit-form") + val, err := NewDocDownloadResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("reset-form") + val, err := NewDocDownloadResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("import-data") + val, err := NewDocDownloadResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("javascript") + val, err := NewDocDownloadResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocDownloadResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("rendition") + val, err := NewDocDownloadResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("transition") + val, err := NewDocDownloadResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocDownloadResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocDownloadResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRootTypeFromString("unknown") + val, err := NewDocDownloadResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394886,35 +719267,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocDownloadResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocDownloadResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocDownloadResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocDownloadResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocDownloadResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -394922,147 +719289,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsExportDataResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsExportDataResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto") + val, err := NewDocFormsExportDataResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocFormsExportDataResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocFormsExportDataResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("launch") + val, err := NewDocFormsExportDataResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("thread") + val, err := NewDocFormsExportDataResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("uri") + val, err := NewDocFormsExportDataResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("sound") + val, err := NewDocFormsExportDataResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("movie") + val, err := NewDocFormsExportDataResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("hide") + val, err := NewDocFormsExportDataResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("named") + val, err := NewDocFormsExportDataResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocFormsExportDataResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocFormsExportDataResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocFormsExportDataResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocFormsExportDataResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocFormsExportDataResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocFormsExportDataResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("transition") + val, err := NewDocFormsExportDataResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocFormsExportDataResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsExportDataResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsExportDataResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395070,35 +719437,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocFormsExportDataResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocFormsExportDataResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsExportDataResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsExportDataResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsExportDataResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395106,147 +719459,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395254,35 +719607,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395290,147 +719643,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395438,35 +719791,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395474,147 +719827,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395622,35 +719975,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395658,147 +720011,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395806,35 +720159,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpe }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395842,147 +720195,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpe }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemCheckboxOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -395990,35 +720372,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396026,155 +720408,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("normal") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_multiply", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("multiply") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_screen", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("screen") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_overlay", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("overlay") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_darken", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("darken") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("lighten") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("color-dodge") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("color-burn") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("hard-light") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("soft-light") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("difference") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("named"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("exclusion") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("hue") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("saturation") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("color") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("luminosity") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("durable") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("weak") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString("durable") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396182,50 +720556,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent(t *testing.T) { - t.Run("NewFromString_strikeout_text_edit", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString("strikeout-text-edit") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent("strikeout-text-edit"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString("strikeout-text-edit") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("reply") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("group") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString("reply") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396233,147 +720592,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396381,35 +720740,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396417,147 +720776,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396565,35 +720924,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRootType }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396601,147 +720960,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurWarnings }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemComboboxOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396749,35 +721137,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396785,147 +721173,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsFormatRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396933,35 +721321,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -396969,147 +721357,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397117,35 +721505,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRootTyp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397153,147 +721541,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusWarning }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397301,35 +721689,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397337,147 +721725,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemListboxOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397485,35 +721902,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397521,147 +721938,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397669,35 +722086,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397705,147 +722122,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397853,35 +722270,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -397889,147 +722306,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398037,35 +722454,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398073,147 +722490,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenWarn }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398221,35 +722667,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398257,190 +722703,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("normal") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("normal"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_multiply", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("multiply") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("multiply"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_screen", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("screen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("screen"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_overlay", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("overlay") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("overlay"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_darken", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsFormatRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("darken") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("lighten") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("color-dodge") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("color-burn") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("hard-light") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("soft-light") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("difference") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("exclusion") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("hue") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("saturation") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("color") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("named"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("luminosity") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextIcon(t *testing.T) { - t.Run("NewFromString_comment", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("comment") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("comment"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_key", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("key") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("key"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_note", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("note") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("note"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_help", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("help") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("help"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_new_paragraph", func(t *testing.T) { + t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("new-paragraph") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("new-paragraph"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_paragraph", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("paragraph") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("paragraph"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_insert", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("insert") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIcon("insert"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString("comment") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398448,57 +722851,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextIcon(t *testing.T) }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("durable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality("durable"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_weak", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("weak") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality("weak"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString("durable") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("reply") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("group") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemTextReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString("reply") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398506,147 +722887,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemTextReplyType(t *testin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398654,35 +723035,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivat }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398690,147 +723071,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivat }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398838,35 +723219,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -398874,147 +723255,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemRadioOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399022,35 +723432,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399058,147 +723468,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399206,35 +723616,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399242,147 +723652,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorE }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399390,35 +723800,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399426,147 +723836,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399574,35 +723984,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399610,147 +724020,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemSignatureOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399758,35 +724197,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399794,147 +724233,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsFormatRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399942,35 +724381,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -399978,147 +724417,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400126,35 +724565,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400162,147 +724601,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400310,35 +724749,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpe }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400346,147 +724785,176 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpe }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemTextOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("acroform") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextOrigin("acroform"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_recovered", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("recovered") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemTextOrigin("recovered"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400494,35 +724962,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400530,155 +724998,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVis }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType(t *testing.T) { + t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("normal") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_multiply", func(t *testing.T) { + t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("multiply") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_screen", func(t *testing.T) { + t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("screen") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_overlay", func(t *testing.T) { + t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("overlay") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_darken", func(t *testing.T) { + t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("darken") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("launch"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("lighten") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("thread"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("color-dodge") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("uri"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("color-burn") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("sound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("hard-light") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("movie"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("soft-light") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("hide"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("difference") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("named"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("exclusion") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("hue") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("saturation") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("import-data"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("color") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("javascript"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("luminosity") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_rendition", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("rendition") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("rendition"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { + t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("durable") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("transition"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("weak") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString("durable") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400686,28 +725146,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem(t *testing.T) { + t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("reply") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("group") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("incomplete") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString("reply") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400715,147 +725182,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType(t *t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400863,35 +725330,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActiv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -400899,147 +725366,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActiv }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType(t *testing.T) { t.Run("NewFromString_unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_remote", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto-remote") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_embedded", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto-embedded") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") }) t.Run("NewFromString_launch", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("launch") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("launch"), val, "enum value should match expected wire value") }) t.Run("NewFromString_thread", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("thread") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("thread") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("thread"), val, "enum value should match expected wire value") }) t.Run("NewFromString_uri", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("uri") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("uri") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("uri"), val, "enum value should match expected wire value") }) t.Run("NewFromString_sound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("sound") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("sound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("sound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_movie", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("movie") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("movie") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("movie"), val, "enum value should match expected wire value") }) t.Run("NewFromString_hide", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("hide") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("hide") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("hide"), val, "enum value should match expected wire value") }) t.Run("NewFromString_named", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("named") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("named") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("named"), val, "enum value should match expected wire value") }) t.Run("NewFromString_submit_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("submit-form") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("submit-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_reset_form", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("reset-form") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("reset-form") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") }) t.Run("NewFromString_import_data", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("import-data") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("import-data") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("import-data"), val, "enum value should match expected wire value") }) t.Run("NewFromString_javascript", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("javascript") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("javascript") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("javascript"), val, "enum value should match expected wire value") }) t.Run("NewFromString_set_ocg_state", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("set-ocg-state") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") }) t.Run("NewFromString_rendition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("rendition") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("rendition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("rendition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_transition", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("transition") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("transition") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("transition"), val, "enum value should match expected wire value") }) t.Run("NewFromString_goto_3d_view", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto-3d-view") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401047,35 +725514,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem(t *testing.T) { t.Run("NewFromString_cycle_dropped", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") }) t.Run("NewFromString_malformed_next", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("malformed-next") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") }) t.Run("NewFromString_incomplete", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("incomplete") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("cycle-dropped") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401083,183 +725550,212 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsGet200ResponseFieldsItemUnknownOrigin(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("acroform") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownOrigin("acroform"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_recovered", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("recovered") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownOrigin("recovered"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("acroform") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet200ResponseFormKind(t *testing.T) { + t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocFormsGet200ResponseFormKindFromString("none") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFormKind("none"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_acroform", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocFormsGet200ResponseFormKindFromString("acroform") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFormKind("acroform"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_xfa", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocFormsGet200ResponseFormKindFromString("xfa") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet200ResponseFormKind("xfa"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet200ResponseFormKindFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet200ResponseFormKindFromString("none") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsGet404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocFormsGet404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocFormsGet404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocFormsGet404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocFormsGet404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocFormsGet404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("named") + val, err := NewDocFormsGet404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocFormsGet404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocFormsGet404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocFormsGet404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocFormsGet404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocFormsGet404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocFormsGet404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocFormsGet404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocFormsGet404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet404ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsGet404ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsGet404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("malformed-next") + val, err := NewDocFormsGet404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocFormsGet404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsGet404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsGet404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401267,147 +725763,169 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCurso }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsGet404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocFormsGet404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsGet404ResponseName("EngineError"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocFormsGet404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocFormsGet404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocFormsImportData400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto") + val, err := NewDocFormsImportData400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocFormsImportData400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocFormsImportData400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("launch") + val, err := NewDocFormsImportData400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("thread") + val, err := NewDocFormsImportData400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("uri") + val, err := NewDocFormsImportData400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("sound") + val, err := NewDocFormsImportData400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("movie") + val, err := NewDocFormsImportData400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("hide") + val, err := NewDocFormsImportData400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("named") + val, err := NewDocFormsImportData400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocFormsImportData400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocFormsImportData400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocFormsImportData400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocFormsImportData400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocFormsImportData400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocFormsImportData400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("transition") + val, err := NewDocFormsImportData400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocFormsImportData400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocFormsImportData400ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocFormsImportData400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsImportData400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocFormsImportData400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401415,35 +725933,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCurso }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocFormsImportData400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocFormsImportData400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsImportData400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsImportData400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401451,147 +725955,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCurso }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsImportData404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("unknown") + val, err := NewDocFormsImportData404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto") + val, err := NewDocFormsImportData404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocFormsImportData404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocFormsImportData404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("launch") + val, err := NewDocFormsImportData404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("thread") + val, err := NewDocFormsImportData404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("uri") + val, err := NewDocFormsImportData404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("sound") + val, err := NewDocFormsImportData404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("movie") + val, err := NewDocFormsImportData404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("hide") + val, err := NewDocFormsImportData404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("named") + val, err := NewDocFormsImportData404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("submit-form") + val, err := NewDocFormsImportData404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("reset-form") + val, err := NewDocFormsImportData404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("import-data") + val, err := NewDocFormsImportData404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("javascript") + val, err := NewDocFormsImportData404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocFormsImportData404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("rendition") + val, err := NewDocFormsImportData404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("transition") + val, err := NewDocFormsImportData404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocFormsImportData404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsImportData404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRootTypeFromString("unknown") + val, err := NewDocFormsImportData404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401599,35 +726103,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocFormsImportData404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocFormsImportData404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsImportData404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsImportData404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsImportData404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401635,147 +726125,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsReset404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsReset404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto") + val, err := NewDocFormsReset404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocFormsReset404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocFormsReset404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("launch") + val, err := NewDocFormsReset404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("thread") + val, err := NewDocFormsReset404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("uri") + val, err := NewDocFormsReset404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("sound") + val, err := NewDocFormsReset404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("movie") + val, err := NewDocFormsReset404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("hide") + val, err := NewDocFormsReset404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("named") + val, err := NewDocFormsReset404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocFormsReset404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocFormsReset404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocFormsReset404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocFormsReset404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocFormsReset404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocFormsReset404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("transition") + val, err := NewDocFormsReset404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocFormsReset404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsReset404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocFormsReset404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401783,35 +726273,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouse }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocFormsReset404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocFormsReset404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsReset404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsReset404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsReset404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401819,147 +726295,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouse }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsSetValue400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsSetValue400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto") + val, err := NewDocFormsSetValue400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocFormsSetValue400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocFormsSetValue400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("launch") + val, err := NewDocFormsSetValue400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("thread") + val, err := NewDocFormsSetValue400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("uri") + val, err := NewDocFormsSetValue400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("sound") + val, err := NewDocFormsSetValue400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("movie") + val, err := NewDocFormsSetValue400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("hide") + val, err := NewDocFormsSetValue400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("named") + val, err := NewDocFormsSetValue400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocFormsSetValue400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocFormsSetValue400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocFormsSetValue400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocFormsSetValue400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocFormsSetValue400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocFormsSetValue400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("transition") + val, err := NewDocFormsSetValue400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocFormsSetValue400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsSetValue400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocFormsSetValue400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -401967,35 +726443,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouse }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocFormsSetValue400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocFormsSetValue400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsSetValue400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsSetValue400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402003,147 +726465,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouse }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocFormsSetValue404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsSetValue404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto") + val, err := NewDocFormsSetValue404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocFormsSetValue404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocFormsSetValue404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("launch") + val, err := NewDocFormsSetValue404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("thread") + val, err := NewDocFormsSetValue404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("uri") + val, err := NewDocFormsSetValue404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("sound") + val, err := NewDocFormsSetValue404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("movie") + val, err := NewDocFormsSetValue404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("hide") + val, err := NewDocFormsSetValue404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("named") + val, err := NewDocFormsSetValue404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocFormsSetValue404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocFormsSetValue404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocFormsSetValue404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocFormsSetValue404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocFormsSetValue404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocFormsSetValue404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("transition") + val, err := NewDocFormsSetValue404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocFormsSetValue404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsSetValue404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocFormsSetValue404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402151,35 +726613,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageC }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocFormsSetValue404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocFormsSetValue404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocFormsSetValue404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocFormsSetValue404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocFormsSetValue404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402187,147 +726635,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageC }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocHead404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocHead404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocHead404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocHead404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocHead404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocHead404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocHead404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocHead404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocHead404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocHead404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocHead404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocHead404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocHead404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocHead404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocHead404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocHead404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocHead404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocHead404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocHead404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocHead404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocHead404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocHead404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402335,35 +726783,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageI }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocHead404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocHead404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocHead404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocHead404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocHead404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402371,147 +726805,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageI }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocManifest404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocManifest404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto") + val, err := NewDocManifest404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocManifest404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocManifest404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("launch") + val, err := NewDocManifest404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("thread") + val, err := NewDocManifest404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("uri") + val, err := NewDocManifest404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("sound") + val, err := NewDocManifest404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("movie") + val, err := NewDocManifest404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("hide") + val, err := NewDocManifest404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("named") + val, err := NewDocManifest404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocManifest404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocManifest404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocManifest404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocManifest404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocManifest404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocManifest404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("transition") + val, err := NewDocManifest404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocManifest404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocManifest404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocManifest404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402519,35 +726953,57 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageO }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestEnumDocManifest404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocManifest404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + assert.Equal(t, DocManifest404ResponseName("EngineError"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_malformed_next", func(t *testing.T) { + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocManifest404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocManifest404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocMetadataGet200ResponseTrapped(t *testing.T) { + t.Run("NewFromString_true", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("malformed-next") + val, err := NewDocMetadataGet200ResponseTrappedFromString("true") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet200ResponseTrapped("true"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_incomplete", func(t *testing.T) { + t.Run("NewFromString_false", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocMetadataGet200ResponseTrappedFromString("false") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet200ResponseTrapped("false"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocMetadataGet200ResponseTrappedFromString("unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocMetadataGet200ResponseTrapped("unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocMetadataGet200ResponseTrappedFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocMetadataGet200ResponseTrappedFromString("true") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402555,147 +727011,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageO }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocMetadataGet404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocMetadataGet404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocMetadataGet404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocMetadataGet404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocMetadataGet404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocMetadataGet404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocMetadataGet404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocMetadataGet404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocMetadataGet404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocMetadataGet404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocMetadataGet404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("named") + val, err := NewDocMetadataGet404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocMetadataGet404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocMetadataGet404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocMetadataGet404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocMetadataGet404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocMetadataGet404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocMetadataGet404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocMetadataGet404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocMetadataGet404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocMetadataGet404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocMetadataGet404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402703,35 +727159,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageV }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocMetadataGet404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocMetadataGet404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocMetadataGet404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocMetadataGet404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocMetadataGet404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402739,155 +727181,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageV }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { +func TestEnumDocPagesDelete400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("normal") + val, err := NewDocPagesDelete400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("normal"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_multiply", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("multiply") + val, err := NewDocPagesDelete400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_screen", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("screen") + val, err := NewDocPagesDelete400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_overlay", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("overlay") + val, err := NewDocPagesDelete400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_darken", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("darken") + val, err := NewDocPagesDelete400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("lighten") + val, err := NewDocPagesDelete400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("color-dodge") + val, err := NewDocPagesDelete400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("color-burn") + val, err := NewDocPagesDelete400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("hard-light") + val, err := NewDocPagesDelete400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("soft-light") + val, err := NewDocPagesDelete400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("difference") + val, err := NewDocPagesDelete400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("exclusion") + val, err := NewDocPagesDelete400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("hue") + val, err := NewDocPagesDelete400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("saturation") + val, err := NewDocPagesDelete400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("color") + val, err := NewDocPagesDelete400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("luminosity") + val, err := NewDocPagesDelete400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + assert.Equal(t, DocPagesDelete400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesDelete400ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesDelete400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("durable") + val, err := NewDocPagesDelete400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("weak") + val, err := NewDocPagesDelete400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality("weak"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesDelete400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString("durable") + val, err := NewDocPagesDelete400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402895,28 +727329,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQual }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("reply") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType("reply"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_group", func(t *testing.T) { +func TestEnumDocPagesDelete400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("group") + val, err := NewDocPagesDelete400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesDelete400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString("reply") + val, err := NewDocPagesDelete400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -402924,147 +727351,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType(t }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesDelete404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("unknown") + val, err := NewDocPagesDelete404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto") + val, err := NewDocPagesDelete404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-remote") + val, err := NewDocPagesDelete404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-embedded") + val, err := NewDocPagesDelete404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("launch") + val, err := NewDocPagesDelete404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("thread") + val, err := NewDocPagesDelete404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("uri") + val, err := NewDocPagesDelete404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("sound") + val, err := NewDocPagesDelete404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("movie") + val, err := NewDocPagesDelete404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("hide") + val, err := NewDocPagesDelete404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("named") + val, err := NewDocPagesDelete404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("submit-form") + val, err := NewDocPagesDelete404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("reset-form") + val, err := NewDocPagesDelete404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("import-data") + val, err := NewDocPagesDelete404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("javascript") + val, err := NewDocPagesDelete404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("set-ocg-state") + val, err := NewDocPagesDelete404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("rendition") + val, err := NewDocPagesDelete404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("transition") + val, err := NewDocPagesDelete404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("goto-3d-view") + val, err := NewDocPagesDelete404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesDelete404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRootTypeFromString("unknown") + val, err := NewDocPagesDelete404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403072,35 +727499,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesDelete404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("incomplete") + val, err := NewDocPagesDelete404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesDelete404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesDelete404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesDelete404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403108,147 +727521,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesExtract400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("unknown") + val, err := NewDocPagesExtract400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto") + val, err := NewDocPagesExtract400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-remote") + val, err := NewDocPagesExtract400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-embedded") + val, err := NewDocPagesExtract400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("launch") + val, err := NewDocPagesExtract400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("thread") + val, err := NewDocPagesExtract400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("uri") + val, err := NewDocPagesExtract400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("sound") + val, err := NewDocPagesExtract400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("movie") + val, err := NewDocPagesExtract400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("hide") + val, err := NewDocPagesExtract400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("named") + val, err := NewDocPagesExtract400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("submit-form") + val, err := NewDocPagesExtract400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("reset-form") + val, err := NewDocPagesExtract400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("import-data") + val, err := NewDocPagesExtract400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("javascript") + val, err := NewDocPagesExtract400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("set-ocg-state") + val, err := NewDocPagesExtract400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("rendition") + val, err := NewDocPagesExtract400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("transition") + val, err := NewDocPagesExtract400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("goto-3d-view") + val, err := NewDocPagesExtract400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesExtract400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTypeFromString("unknown") + val, err := NewDocPagesExtract400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403256,35 +727669,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRootTy }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesExtract400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("incomplete") + val, err := NewDocPagesExtract400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesExtract400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesExtract400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403292,147 +727691,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurWarnin }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesExtract404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocPagesExtract404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto") + val, err := NewDocPagesExtract404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-remote") + val, err := NewDocPagesExtract404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-embedded") + val, err := NewDocPagesExtract404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("launch") + val, err := NewDocPagesExtract404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("thread") + val, err := NewDocPagesExtract404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("uri") + val, err := NewDocPagesExtract404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("sound") + val, err := NewDocPagesExtract404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("movie") + val, err := NewDocPagesExtract404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("hide") + val, err := NewDocPagesExtract404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("named") + val, err := NewDocPagesExtract404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("submit-form") + val, err := NewDocPagesExtract404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("reset-form") + val, err := NewDocPagesExtract404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("import-data") + val, err := NewDocPagesExtract404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("javascript") + val, err := NewDocPagesExtract404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("set-ocg-state") + val, err := NewDocPagesExtract404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("rendition") + val, err := NewDocPagesExtract404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("transition") + val, err := NewDocPagesExtract404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("goto-3d-view") + val, err := NewDocPagesExtract404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesExtract404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRootTypeFromString("unknown") + val, err := NewDocPagesExtract404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403440,35 +727839,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesExtract404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("incomplete") + val, err := NewDocPagesExtract404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesExtract404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesExtract404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesExtract404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403476,147 +727861,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnte }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesFlatten400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocPagesFlatten400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto") + val, err := NewDocPagesFlatten400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-remote") + val, err := NewDocPagesFlatten400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-embedded") + val, err := NewDocPagesFlatten400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("launch") + val, err := NewDocPagesFlatten400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("thread") + val, err := NewDocPagesFlatten400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("uri") + val, err := NewDocPagesFlatten400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("sound") + val, err := NewDocPagesFlatten400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("movie") + val, err := NewDocPagesFlatten400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("hide") + val, err := NewDocPagesFlatten400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("named") + val, err := NewDocPagesFlatten400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("submit-form") + val, err := NewDocPagesFlatten400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("reset-form") + val, err := NewDocPagesFlatten400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("import-data") + val, err := NewDocPagesFlatten400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("javascript") + val, err := NewDocPagesFlatten400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("set-ocg-state") + val, err := NewDocPagesFlatten400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("rendition") + val, err := NewDocPagesFlatten400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("transition") + val, err := NewDocPagesFlatten400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("goto-3d-view") + val, err := NewDocPagesFlatten400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesFlatten400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRootTypeFromString("unknown") + val, err := NewDocPagesFlatten400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403624,35 +728009,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesFlatten400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("incomplete") + val, err := NewDocPagesFlatten400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesFlatten400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesFlatten400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403660,147 +728031,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesFlatten404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("unknown") + val, err := NewDocPagesFlatten404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto") + val, err := NewDocPagesFlatten404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-remote") + val, err := NewDocPagesFlatten404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-embedded") + val, err := NewDocPagesFlatten404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("launch") + val, err := NewDocPagesFlatten404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("thread") + val, err := NewDocPagesFlatten404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("uri") + val, err := NewDocPagesFlatten404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("sound") + val, err := NewDocPagesFlatten404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("movie") + val, err := NewDocPagesFlatten404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("hide") + val, err := NewDocPagesFlatten404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("named") + val, err := NewDocPagesFlatten404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("submit-form") + val, err := NewDocPagesFlatten404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("reset-form") + val, err := NewDocPagesFlatten404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("import-data") + val, err := NewDocPagesFlatten404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("javascript") + val, err := NewDocPagesFlatten404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("set-ocg-state") + val, err := NewDocPagesFlatten404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("rendition") + val, err := NewDocPagesFlatten404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("transition") + val, err := NewDocPagesFlatten404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("goto-3d-view") + val, err := NewDocPagesFlatten404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesFlatten404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootTypeFromString("unknown") + val, err := NewDocPagesFlatten404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403808,35 +728179,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRootT }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesFlatten404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("incomplete") + val, err := NewDocPagesFlatten404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesFlatten404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesFlatten404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesFlatten404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403844,147 +728201,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusWarni }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesInsert400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocPagesInsert400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto") + val, err := NewDocPagesInsert400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-remote") + val, err := NewDocPagesInsert400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-embedded") + val, err := NewDocPagesInsert400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("launch") + val, err := NewDocPagesInsert400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("thread") + val, err := NewDocPagesInsert400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("uri") + val, err := NewDocPagesInsert400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("sound") + val, err := NewDocPagesInsert400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("movie") + val, err := NewDocPagesInsert400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("hide") + val, err := NewDocPagesInsert400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("named") + val, err := NewDocPagesInsert400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("submit-form") + val, err := NewDocPagesInsert400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("reset-form") + val, err := NewDocPagesInsert400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("import-data") + val, err := NewDocPagesInsert400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("javascript") + val, err := NewDocPagesInsert400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("set-ocg-state") + val, err := NewDocPagesInsert400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("rendition") + val, err := NewDocPagesInsert400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("transition") + val, err := NewDocPagesInsert400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("goto-3d-view") + val, err := NewDocPagesInsert400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsert400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRootTypeFromString("unknown") + val, err := NewDocPagesInsert400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -403992,35 +728349,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesInsert400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("incomplete") + val, err := NewDocPagesInsert400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsert400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesInsert400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404028,147 +728371,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesInsert404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocPagesInsert404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto") + val, err := NewDocPagesInsert404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-remote") + val, err := NewDocPagesInsert404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-embedded") + val, err := NewDocPagesInsert404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("launch") + val, err := NewDocPagesInsert404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("thread") + val, err := NewDocPagesInsert404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("uri") + val, err := NewDocPagesInsert404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("sound") + val, err := NewDocPagesInsert404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("movie") + val, err := NewDocPagesInsert404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("hide") + val, err := NewDocPagesInsert404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("named") + val, err := NewDocPagesInsert404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("submit-form") + val, err := NewDocPagesInsert404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("reset-form") + val, err := NewDocPagesInsert404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("import-data") + val, err := NewDocPagesInsert404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("javascript") + val, err := NewDocPagesInsert404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("set-ocg-state") + val, err := NewDocPagesInsert404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("rendition") + val, err := NewDocPagesInsert404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("transition") + val, err := NewDocPagesInsert404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("goto-3d-view") + val, err := NewDocPagesInsert404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsert404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRootTypeFromString("unknown") + val, err := NewDocPagesInsert404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404176,35 +728519,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesInsert404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("incomplete") + val, err := NewDocPagesInsert404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsert404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsert404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesInsert404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404212,147 +728541,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpWar }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesInsertBlank400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-remote") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-embedded") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("launch") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("thread") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("uri") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("sound") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("movie") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("hide") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("named") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("submit-form") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("reset-form") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("import-data") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("javascript") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("set-ocg-state") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("rendition") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("transition") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("goto-3d-view") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsertBlank400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRootTypeFromString("unknown") + val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404360,35 +728689,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseR }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesInsertBlank400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("incomplete") + val, err := NewDocPagesInsertBlank400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsertBlank400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesInsertBlank400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404396,147 +728711,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseW }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesInsertBlank404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-remote") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-embedded") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("launch") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("thread") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("uri") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("sound") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("movie") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("hide") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("named") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("submit-form") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("reset-form") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("import-data") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("javascript") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("set-ocg-state") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("rendition") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("transition") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("goto-3d-view") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsertBlank404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRootTypeFromString("unknown") + val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404544,35 +728859,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesInsertBlank404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("incomplete") + val, err := NewDocPagesInsertBlank404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesInsertBlank404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesInsertBlank404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesInsertBlank404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404580,147 +728881,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisi }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesMove400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocPagesMove400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto") + val, err := NewDocPagesMove400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-remote") + val, err := NewDocPagesMove400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-embedded") + val, err := NewDocPagesMove400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("launch") + val, err := NewDocPagesMove400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("thread") + val, err := NewDocPagesMove400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("uri") + val, err := NewDocPagesMove400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("sound") + val, err := NewDocPagesMove400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("movie") + val, err := NewDocPagesMove400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("hide") + val, err := NewDocPagesMove400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("named") + val, err := NewDocPagesMove400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("submit-form") + val, err := NewDocPagesMove400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("reset-form") + val, err := NewDocPagesMove400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("import-data") + val, err := NewDocPagesMove400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("javascript") + val, err := NewDocPagesMove400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("set-ocg-state") + val, err := NewDocPagesMove400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("rendition") + val, err := NewDocPagesMove400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("transition") + val, err := NewDocPagesMove400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("goto-3d-view") + val, err := NewDocPagesMove400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesMove400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRootTypeFromString("unknown") + val, err := NewDocPagesMove400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404728,35 +729029,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRo }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesMove400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("incomplete") + val, err := NewDocPagesMove400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesMove400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesMove400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404764,147 +729051,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenWa }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesMove404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocPagesMove404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto") + val, err := NewDocPagesMove404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_remote", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-remote") + val, err := NewDocPagesMove404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto-remote"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-embedded") + val, err := NewDocPagesMove404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto-embedded"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_launch", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("launch") + val, err := NewDocPagesMove404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("launch"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_thread", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("thread") + val, err := NewDocPagesMove404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("thread"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_uri", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("uri") + val, err := NewDocPagesMove404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("uri"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_sound", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("sound") + val, err := NewDocPagesMove404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("sound"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_movie", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("movie") + val, err := NewDocPagesMove404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("movie"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hide", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("hide") + val, err := NewDocPagesMove404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("hide"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_named", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("named") + val, err := NewDocPagesMove404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("named"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_submit_form", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("submit-form") + val, err := NewDocPagesMove404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("submit-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_reset_form", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("reset-form") + val, err := NewDocPagesMove404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("reset-form"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_import_data", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("import-data") + val, err := NewDocPagesMove404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("import-data"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_javascript", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("javascript") + val, err := NewDocPagesMove404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("javascript"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("set-ocg-state") + val, err := NewDocPagesMove404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("set-ocg-state"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_rendition", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("rendition") + val, err := NewDocPagesMove404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("rendition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_transition", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("transition") + val, err := NewDocPagesMove404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("transition"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("goto-3d-view") + val, err := NewDocPagesMove404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootType("goto-3d-view"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesMove404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRootTypeFromString("unknown") + val, err := NewDocPagesMove404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404912,35 +729199,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_malformed_next", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem("malformed-next"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestEnumDocPagesMove404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("incomplete") + val, err := NewDocPagesMove404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItem("incomplete"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesMove404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesMove404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleWarningsItemFromString("cycle-dropped") + val, err := NewDocPagesMove404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -404948,240 +729221,169 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibl }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode(t *testing.T) { - t.Run("NewFromString_normal", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("normal") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("normal"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_multiply", func(t *testing.T) { +func TestEnumDocPagesRotate400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("multiply") + val, err := NewDocPagesRotate400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("multiply"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_screen", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("screen") + val, err := NewDocPagesRotate400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("screen"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_overlay", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("overlay") + val, err := NewDocPagesRotate400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("overlay"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_darken", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("darken") + val, err := NewDocPagesRotate400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("darken"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_lighten", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("lighten") + val, err := NewDocPagesRotate400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("lighten"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_dodge", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("color-dodge") + val, err := NewDocPagesRotate400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("color-dodge"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color_burn", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("color-burn") + val, err := NewDocPagesRotate400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("color-burn"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hard_light", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("hard-light") + val, err := NewDocPagesRotate400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("hard-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_soft_light", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("soft-light") + val, err := NewDocPagesRotate400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("soft-light"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_difference", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("difference") + val, err := NewDocPagesRotate400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("difference"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_exclusion", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("exclusion") + val, err := NewDocPagesRotate400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("exclusion"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_hue", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("hue") + val, err := NewDocPagesRotate400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("hue"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_saturation", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("saturation") + val, err := NewDocPagesRotate400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("saturation"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_color", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("color") + val, err := NewDocPagesRotate400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("color"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_luminosity", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("luminosity") + val, err := NewDocPagesRotate400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode("luminosity"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString("normal") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + assert.Equal(t, DocPagesRotate400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle(t *testing.T) { - t.Run("NewFromString_solid", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("solid") + val, err := NewDocPagesRotate400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("solid"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_dashed", func(t *testing.T) { + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("dashed") + val, err := NewDocPagesRotate400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("dashed"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_beveled", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("beveled") + val, err := NewDocPagesRotate400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("beveled"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_inset", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("inset") + val, err := NewDocPagesRotate400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle("inset"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesRotate400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString("solid") + val, err := NewDocPagesRotate400ResponseCodeFromString("Unknown") assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) - }) -} - -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily(t *testing.T) { - t.Run("NewFromString_text", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("text") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("text"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_checkbox", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("checkbox") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("checkbox"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_radio", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("radio") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("radio"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_combobox", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("combobox") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("combobox"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_listbox", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("listbox") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("listbox"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_pushbutton", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("pushbutton") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("pushbutton"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_signature", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("signature") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("signature"), val, "enum value should match expected wire value") + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) }) +} - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestEnumDocPagesRotate400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("unknown") + val, err := NewDocPagesRotate400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily("unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesRotate400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString("text") + val, err := NewDocPagesRotate400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405189,170 +729391,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily(t *te }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily(t *testing.T) { - t.Run("NewFromString_courier", func(t *testing.T) { +func TestEnumDocPagesRotate404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier") + val, err := NewDocPagesRotate404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_courier_bold", func(t *testing.T) { + t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier-bold") + val, err := NewDocPagesRotate404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier-bold"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_courier_bold_oblique", func(t *testing.T) { + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier-bold-oblique") + val, err := NewDocPagesRotate404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier-bold-oblique"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_courier_oblique", func(t *testing.T) { + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier-oblique") + val, err := NewDocPagesRotate404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("courier-oblique"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_helvetica", func(t *testing.T) { + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica") + val, err := NewDocPagesRotate404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_helvetica_bold", func(t *testing.T) { + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica-bold") + val, err := NewDocPagesRotate404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica-bold"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_helvetica_bold_oblique", func(t *testing.T) { + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica-bold-oblique") + val, err := NewDocPagesRotate404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica-bold-oblique"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_helvetica_oblique", func(t *testing.T) { + t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("helvetica-oblique") + val, err := NewDocPagesRotate404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("helvetica-oblique"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_roman", func(t *testing.T) { + t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-roman") + val, err := NewDocPagesRotate404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-roman"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("Network"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_bold", func(t *testing.T) { + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-bold") + val, err := NewDocPagesRotate404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-bold"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_bold_italic", func(t *testing.T) { + t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-bold-italic") + val, err := NewDocPagesRotate404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-bold-italic"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_times_italic", func(t *testing.T) { + t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("times-italic") + val, err := NewDocPagesRotate404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("times-italic"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_symbol", func(t *testing.T) { + t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("symbol") + val, err := NewDocPagesRotate404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("symbol"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_zapf_dingbats", func(t *testing.T) { + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("zapf-dingbats") + val, err := NewDocPagesRotate404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily("zapf-dingbats"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString("courier") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + assert.Equal(t, DocPagesRotate404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality(t *testing.T) { - t.Run("NewFromString_durable", func(t *testing.T) { + t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("durable") + val, err := NewDocPagesRotate404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality("durable"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_weak", func(t *testing.T) { + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("weak") + val, err := NewDocPagesRotate404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality("weak"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + assert.Equal(t, DocPagesRotate404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString("durable") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesRotate404ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesRotate404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) -} -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetReplyType(t *testing.T) { - t.Run("NewFromString_reply", func(t *testing.T) { + t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("reply") + val, err := NewDocPagesRotate404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType("reply"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) - t.Run("NewFromString_group", func(t *testing.T) { + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("group") + val, err := NewDocPagesRotate404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType("group"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesRotate404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString("reply") + val, err := NewDocPagesRotate404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405360,35 +729539,21 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetReplyType(t *test }) } -func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign(t *testing.T) { - t.Run("NewFromString_left", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("left") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign("left"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_center", func(t *testing.T) { - t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("center") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign("center"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_right", func(t *testing.T) { +func TestEnumDocPagesRotate404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("right") + val, err := NewDocPagesRotate404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign("right"), val, "enum value should match expected wire value") + assert.Equal(t, DocPagesRotate404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("invalid_value_that_does_not_exist") + _, err := NewDocPagesRotate404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString("left") + val, err := NewDocPagesRotate404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405396,147 +729561,147 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign(t *test }) } -func TestEnumDocAnnotationsList404ResponseCode(t *testing.T) { +func TestEnumDocRedactionsApply400ResponseCode(t *testing.T) { t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("Unknown") + val, err := NewDocRedactionsApply400ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("Unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("InvalidArg") + val, err := NewDocRedactionsApply400ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("DocNotOpen") + val, err := NewDocRedactionsApply400ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("DocOpenFailed") + val, err := NewDocRedactionsApply400ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("DocPasswordRequired") + val, err := NewDocRedactionsApply400ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocRedactionsApply400ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("SharePasswordRequired") + val, err := NewDocRedactionsApply400ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("Aborted") + val, err := NewDocRedactionsApply400ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("Aborted"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("Network") + val, err := NewDocRedactionsApply400ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("Network"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("Unauthenticated") + val, err := NewDocRedactionsApply400ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("Forbidden") + val, err := NewDocRedactionsApply400ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("NotFound") + val, err := NewDocRedactionsApply400ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("NotFound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("WireFormat") + val, err := NewDocRedactionsApply400ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocRedactionsApply400ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("InvalidReference") + val, err := NewDocRedactionsApply400ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocRedactionsApply400ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("LayerVersionConflict") + val, err := NewDocRedactionsApply400ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("NotImplemented") + val, err := NewDocRedactionsApply400ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseCodeFromString("MalformedPdf") + val, err := NewDocRedactionsApply400ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList404ResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocRedactionsApply400ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList404ResponseCodeFromString("Unknown") + val, err := NewDocRedactionsApply400ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405544,21 +729709,21 @@ func TestEnumDocAnnotationsList404ResponseCode(t *testing.T) { }) } -func TestEnumDocAnnotationsList404ResponseName(t *testing.T) { +func TestEnumDocRedactionsApply400ResponseName(t *testing.T) { t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsList404ResponseNameFromString("EngineError") + val, err := NewDocRedactionsApply400ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsList404ResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply400ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsList404ResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocRedactionsApply400ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsList404ResponseNameFromString("EngineError") + val, err := NewDocRedactionsApply400ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405566,147 +729731,147 @@ func TestEnumDocAnnotationsList404ResponseName(t *testing.T) { }) } -func TestEnumDocAnnotationsUpdate400ResponseCode(t *testing.T) { +func TestEnumDocRedactionsApply404ResponseCode(t *testing.T) { t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Unknown") + val, err := NewDocRedactionsApply404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("InvalidArg") + val, err := NewDocRedactionsApply404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocNotOpen") + val, err := NewDocRedactionsApply404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocOpenFailed") + val, err := NewDocRedactionsApply404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocPasswordRequired") + val, err := NewDocRedactionsApply404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocRedactionsApply404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("SharePasswordRequired") + val, err := NewDocRedactionsApply404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Aborted") + val, err := NewDocRedactionsApply404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Network") + val, err := NewDocRedactionsApply404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("Network"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Unauthenticated") + val, err := NewDocRedactionsApply404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Forbidden") + val, err := NewDocRedactionsApply404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("NotFound") + val, err := NewDocRedactionsApply404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("WireFormat") + val, err := NewDocRedactionsApply404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocRedactionsApply404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("InvalidReference") + val, err := NewDocRedactionsApply404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocRedactionsApply404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("LayerVersionConflict") + val, err := NewDocRedactionsApply404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("NotImplemented") + val, err := NewDocRedactionsApply404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("MalformedPdf") + val, err := NewDocRedactionsApply404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsUpdate400ResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocRedactionsApply404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsUpdate400ResponseCodeFromString("Unknown") + val, err := NewDocRedactionsApply404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405714,21 +729879,21 @@ func TestEnumDocAnnotationsUpdate400ResponseCode(t *testing.T) { }) } -func TestEnumDocAnnotationsUpdate400ResponseName(t *testing.T) { +func TestEnumDocRedactionsApply404ResponseName(t *testing.T) { t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate400ResponseNameFromString("EngineError") + val, err := NewDocRedactionsApply404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate400ResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocRedactionsApply404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsUpdate400ResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocRedactionsApply404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsUpdate400ResponseNameFromString("EngineError") + val, err := NewDocRedactionsApply404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405736,147 +729901,147 @@ func TestEnumDocAnnotationsUpdate400ResponseName(t *testing.T) { }) } -func TestEnumDocAnnotationsUpdate404ResponseCode(t *testing.T) { +func TestEnumDocRenderResponseCode(t *testing.T) { t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Unknown") + val, err := NewDocRenderResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("Unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("InvalidArg") + val, err := NewDocRenderResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocNotOpen") + val, err := NewDocRenderResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocOpenFailed") + val, err := NewDocRenderResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocPasswordRequired") + val, err := NewDocRenderResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocRenderResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("SharePasswordRequired") + val, err := NewDocRenderResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Aborted") + val, err := NewDocRenderResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("Aborted"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Network") + val, err := NewDocRenderResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("Network"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Unauthenticated") + val, err := NewDocRenderResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Forbidden") + val, err := NewDocRenderResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("Forbidden"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("NotFound") + val, err := NewDocRenderResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("NotFound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("WireFormat") + val, err := NewDocRenderResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("WireFormat"), val, "enum value should match expected wire value") }) t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocRenderResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("InvalidReference") + val, err := NewDocRenderResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocRenderResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("LayerVersionConflict") + val, err := NewDocRenderResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("NotImplemented") + val, err := NewDocRenderResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("MalformedPdf") + val, err := NewDocRenderResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsUpdate404ResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocRenderResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsUpdate404ResponseCodeFromString("Unknown") + val, err := NewDocRenderResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405884,21 +730049,21 @@ func TestEnumDocAnnotationsUpdate404ResponseCode(t *testing.T) { }) } -func TestEnumDocAnnotationsUpdate404ResponseName(t *testing.T) { +func TestEnumDocRenderResponseName(t *testing.T) { t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocAnnotationsUpdate404ResponseNameFromString("EngineError") + val, err := NewDocRenderResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocAnnotationsUpdate404ResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocRenderResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocAnnotationsUpdate404ResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocRenderResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocAnnotationsUpdate404ResponseNameFromString("EngineError") + val, err := NewDocRenderResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -405906,147 +730071,147 @@ func TestEnumDocAnnotationsUpdate404ResponseName(t *testing.T) { }) } -func TestEnumDocDownloadResponseCode(t *testing.T) { +func TestEnumDocText404ResponseCode(t *testing.T) { t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("Unknown") + val, err := NewDocText404ResponseCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("Unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("InvalidArg") + val, err := NewDocText404ResponseCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("DocNotOpen") + val, err := NewDocText404ResponseCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("DocOpenFailed") + val, err := NewDocText404ResponseCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("DocPasswordRequired") + val, err := NewDocText404ResponseCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("DocPasswordIncorrect") + val, err := NewDocText404ResponseCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("SharePasswordRequired") + val, err := NewDocText404ResponseCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("Aborted") + val, err := NewDocText404ResponseCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("Aborted"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("Network") + val, err := NewDocText404ResponseCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("Network"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("Unauthenticated") + val, err := NewDocText404ResponseCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("Forbidden") + val, err := NewDocText404ResponseCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("Forbidden"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("NotFound") + val, err := NewDocText404ResponseCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("NotFound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("WireFormat") + val, err := NewDocText404ResponseCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("WireFormat"), val, "enum value should match expected wire value") }) t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("RuntimeUnavailable") + val, err := NewDocText404ResponseCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("InvalidReference") + val, err := NewDocText404ResponseCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewDocText404ResponseCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("LayerVersionConflict") + val, err := NewDocText404ResponseCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("NotImplemented") + val, err := NewDocText404ResponseCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") }) t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseCodeFromString("MalformedPdf") + val, err := NewDocText404ResponseCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocDownloadResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewDocText404ResponseCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocDownloadResponseCodeFromString("Unknown") + val, err := NewDocText404ResponseCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -406054,21 +730219,21 @@ func TestEnumDocDownloadResponseCode(t *testing.T) { }) } -func TestEnumDocDownloadResponseName(t *testing.T) { +func TestEnumDocText404ResponseName(t *testing.T) { t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocDownloadResponseNameFromString("EngineError") + val, err := NewDocText404ResponseNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocDownloadResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, DocText404ResponseName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocDownloadResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewDocText404ResponseNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocDownloadResponseNameFromString("EngineError") + val, err := NewDocText404ResponseNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -406076,147 +730241,269 @@ func TestEnumDocDownloadResponseName(t *testing.T) { }) } -func TestEnumDocFormsExportDataResponseCode(t *testing.T) { +func TestEnumDocumentsImportFrom202ResponseDocumentState(t *testing.T) { + t.Run("NewFromString_pending", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("pending") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("pending"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_ready", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("ready") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("ready"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_failed", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("failed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("failed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_deleting", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("deleting") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("deleting"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("pending") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocumentsImportFrom202ResponseDocumentThumbnailState(t *testing.T) { + t.Run("NewFromString_pending", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("pending") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("pending"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_ready", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("ready") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("ready"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_locked", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("locked") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("locked"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_failed", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("failed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("failed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("pending") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocumentsImportFrom202ResponseTag(t *testing.T) { + t.Run("NewFromString_imported", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseTagFromString("imported") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseTag("imported"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_deduped", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseTagFromString("deduped") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseTag("deduped"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_accepted", func(t *testing.T) { + t.Parallel() + val, err := NewDocumentsImportFrom202ResponseTagFromString("accepted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocumentsImportFrom202ResponseTag("accepted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocumentsImportFrom202ResponseTagFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocumentsImportFrom202ResponseTagFromString("imported") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumEngineErrorPayloadCode(t *testing.T) { t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("Unknown") + val, err := NewEngineErrorPayloadCodeFromString("Unknown") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("Unknown"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("Unknown"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidArg", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("InvalidArg") + val, err := NewEngineErrorPayloadCodeFromString("InvalidArg") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("InvalidArg"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("InvalidArg"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocNotOpen", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("DocNotOpen") + val, err := NewEngineErrorPayloadCodeFromString("DocNotOpen") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("DocNotOpen"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("DocOpenFailed") + val, err := NewEngineErrorPayloadCodeFromString("DocOpenFailed") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("DocOpenFailed"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("DocPasswordRequired") + val, err := NewEngineErrorPayloadCodeFromString("DocPasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("DocPasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("DocPasswordIncorrect") + val, err := NewEngineErrorPayloadCodeFromString("DocPasswordIncorrect") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") }) t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("SharePasswordRequired") + val, err := NewEngineErrorPayloadCodeFromString("SharePasswordRequired") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("SharePasswordRequired"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Aborted", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("Aborted") + val, err := NewEngineErrorPayloadCodeFromString("Aborted") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("Aborted"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("Aborted"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Network", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("Network") + val, err := NewEngineErrorPayloadCodeFromString("Network") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("Network"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("Network"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Unauthenticated", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("Unauthenticated") + val, err := NewEngineErrorPayloadCodeFromString("Unauthenticated") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("Unauthenticated"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Forbidden", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("Forbidden") + val, err := NewEngineErrorPayloadCodeFromString("Forbidden") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("Forbidden"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("Forbidden"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotFound", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("NotFound") + val, err := NewEngineErrorPayloadCodeFromString("NotFound") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("NotFound"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("NotFound"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WireFormat", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("WireFormat") + val, err := NewEngineErrorPayloadCodeFromString("WireFormat") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("WireFormat"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("WireFormat"), val, "enum value should match expected wire value") }) t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("RuntimeUnavailable") + val, err := NewEngineErrorPayloadCodeFromString("RuntimeUnavailable") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("RuntimeUnavailable"), val, "enum value should match expected wire value") }) t.Run("NewFromString_InvalidReference", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("InvalidReference") + val, err := NewEngineErrorPayloadCodeFromString("InvalidReference") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("InvalidReference"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("InvalidReference"), val, "enum value should match expected wire value") }) t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("WeakAnnotationSessionConflict") + val, err := NewEngineErrorPayloadCodeFromString("WeakAnnotationSessionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("LayerVersionConflict") + val, err := NewEngineErrorPayloadCodeFromString("LayerVersionConflict") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("LayerVersionConflict"), val, "enum value should match expected wire value") }) t.Run("NewFromString_NotImplemented", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("NotImplemented") + val, err := NewEngineErrorPayloadCodeFromString("NotImplemented") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("NotImplemented"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("NotImplemented"), val, "enum value should match expected wire value") }) t.Run("NewFromString_MalformedPdf", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseCodeFromString("MalformedPdf") + val, err := NewEngineErrorPayloadCodeFromString("MalformedPdf") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadCode("MalformedPdf"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsExportDataResponseCodeFromString("invalid_value_that_does_not_exist") + _, err := NewEngineErrorPayloadCodeFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsExportDataResponseCodeFromString("Unknown") + val, err := NewEngineErrorPayloadCodeFromString("Unknown") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -406224,21 +730511,21 @@ func TestEnumDocFormsExportDataResponseCode(t *testing.T) { }) } -func TestEnumDocFormsExportDataResponseName(t *testing.T) { +func TestEnumEngineErrorPayloadName(t *testing.T) { t.Run("NewFromString_EngineError", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsExportDataResponseNameFromString("EngineError") + val, err := NewEngineErrorPayloadNameFromString("EngineError") assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsExportDataResponseName("EngineError"), val, "enum value should match expected wire value") + assert.Equal(t, EngineErrorPayloadName("EngineError"), val, "enum value should match expected wire value") }) t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsExportDataResponseNameFromString("invalid_value_that_does_not_exist") + _, err := NewEngineErrorPayloadNameFromString("invalid_value_that_does_not_exist") assert.Error(t, err) }) t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsExportDataResponseNameFromString("EngineError") + val, err := NewEngineErrorPayloadNameFromString("EngineError") assert.NoError(t, err) ptr := val.Ptr() assert.NotNil(t, ptr) @@ -406246,11084 +730533,17007 @@ func TestEnumDocFormsExportDataResponseName(t *testing.T) { }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesAdminErrorPayload(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &AdminErrorPayload{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *AdminErrorPayload + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesAdminErrorPayloadError(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &AdminErrorPayloadError{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *AdminErrorPayloadError + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200Response{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMeta(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMeta{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200ResponseMeta + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItem{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate200ResponseMetaCacheDelta + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache{} + // 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 *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate400Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate400Response{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsCreate400Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsCreate404Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") + obj := &DocAnnotationsCreate404Response{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsCreate404Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsDelete200Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsDelete200Response{} + // 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 *DocAnnotationsDelete200Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMeta(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMeta{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMeta + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItem{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaCacheDelta + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsDelete404Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsDelete404Response{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsDelete404Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200Response{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaret + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActions{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretColor{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretFlags{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex{} + // 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 *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRect{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefNm{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircle + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActions{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemCheckboxOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemCheckboxOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleColor{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleFlags{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRect{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefNm{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachment + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemComboboxOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemComboboxOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex{} + // 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 }) -} -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_malformed_next", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision{} + // 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("NewFromString_incomplete", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeText + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActions{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextColor{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemListboxOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemListboxOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemListboxOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRect{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlight + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActions{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightColor{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightFlags{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRect{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemInk + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemPushbuttonOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActions{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemPushbuttonOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemInkColor{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemInkColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkFlags{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRect{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndex{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefNm{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLine + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActions{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemRadioOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemRadioOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemRadioOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineFlags{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber{} + // 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 }) -} -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor{} + // 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("NewFromString_goto_remote", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_embedded", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + // 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("NewFromString_launch", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("launch"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_thread", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("thread"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + // 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("NewFromString_uri", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("uri"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_sound", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("sound"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} + // 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("NewFromString_movie", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("movie"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_hide", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("hide"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + // 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("NewFromString_named", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("named"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_submit_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + // 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("NewFromString_reset_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_import_data", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + // 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("NewFromString_javascript", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_set_ocg_state", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + // 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("NewFromString_rendition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_transition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("transition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + // 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("NewFromString_goto_3d_view", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActions{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemSignatureOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemSignatureOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActions{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemTextOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemTextOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemTextOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActions{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsCalculateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsFormatWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsKeystrokeWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType(t *testing.T) { - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + // 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("NewFromString_goto", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_remote", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto-remote") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto-remote"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + // 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("NewFromString_goto_embedded", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto-embedded") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto-embedded"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_launch", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("launch") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("launch"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + // 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("NewFromString_thread", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("thread") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("thread"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_uri", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("uri") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("uri"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + // 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("NewFromString_sound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("sound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("sound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_movie", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("movie") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("movie"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + // 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("NewFromString_hide", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("hide") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("hide"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_named", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("named") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("named"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + // 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("NewFromString_submit_form", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("submit-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("submit-form"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_reset_form", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("reset-form") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("reset-form"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + // 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("NewFromString_import_data", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("import-data") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("import-data"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_javascript", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("javascript") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("javascript"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + // 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("NewFromString_set_ocg_state", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("set-ocg-state") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("set-ocg-state"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_rendition", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("rendition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("rendition"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + // 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("NewFromString_transition", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("transition") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("transition"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_goto_3d_view", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("goto-3d-view") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateRootType("goto-3d-view"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateRootTypeFromString("unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem(t *testing.T) { - t.Run("NewFromString_cycle_dropped", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem("cycle-dropped"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + // 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("NewFromString_malformed_next", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("malformed-next") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem("malformed-next"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_incomplete", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("incomplete") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItem("incomplete"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownActionsValidateWarningsItemFromString("cycle-dropped") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFieldsItemUnknownOrigin(t *testing.T) { - t.Run("NewFromString_acroform", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownOrigin("acroform"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActions{} + // 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("NewFromString_recovered", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("recovered") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFieldsItemUnknownOrigin("recovered"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString("acroform") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet200ResponseFormKind(t *testing.T) { - t.Run("NewFromString_none", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFormKindFromString("none") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFormKind("none"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot{} + // 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("NewFromString_acroform", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFormKindFromString("acroform") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFormKind("acroform"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_xfa", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet200ResponseFormKindFromString("xfa") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet200ResponseFormKind("xfa"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet200ResponseFormKindFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet200ResponseFormKindFromString("none") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsGet404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsGet404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsGet404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsGet404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsGet404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsImportData400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsImportData400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocFormsImportData400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + // 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 }) -} -func TestEnumDocFormsImportData400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData400ResponseName("EngineError"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsImportData400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsImportData400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsImportData404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsImportData404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsImportData404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsImportData404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsImportData404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsImportData404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsImportData404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsImportData404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsReset404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActions{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsReset404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsReset404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsReset404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsReset404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsReset404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsReset404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsReset404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsSetValue400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsSetValue400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsSetValue400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsSetValue400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsSetValue400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsSetValue400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsSetValue404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsSetValue404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsSetValue404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocFormsSetValue404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocFormsSetValue404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocFormsSetValue404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocFormsSetValue404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocFormsSetValue404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocHead404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocHead404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActions{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocHead404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocHead404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocHead404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocHead404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocHead404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocHead404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocManifest404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocManifest404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocManifest404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot{} + // 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 }) -} -func TestEnumDocManifest404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocManifest404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocManifest404ResponseName("EngineError"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocManifest404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocManifest404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocMetadataGet200ResponseTrapped(t *testing.T) { - t.Run("NewFromString_true", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet200ResponseTrappedFromString("true") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet200ResponseTrapped("true"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot{} + // 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("NewFromString_false", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet200ResponseTrappedFromString("false") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet200ResponseTrapped("false"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet200ResponseTrappedFromString("unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet200ResponseTrapped("unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocMetadataGet200ResponseTrappedFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocMetadataGet200ResponseTrappedFromString("true") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot{} + // 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 }) -} -func TestEnumDocMetadataGet404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("Unknown"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidArg", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible{} + // 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("NewFromString_DocNotOpen", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot{} + // 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("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen{} + // 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("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Aborted", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("Aborted"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot{} + // 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("NewFromString_Network", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("Network"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Unauthenticated", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible{} + // 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("NewFromString_Forbidden", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_NotFound", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("NotFound"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot{} + // 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("NewFromString_WireFormat", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + // 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("NewFromString_InvalidReference", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + // 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("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_NotImplemented", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + // 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("NewFromString_MalformedPdf", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocMetadataGet404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocMetadataGet404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocMetadataGet404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocMetadataGet404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocMetadataGet404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocMetadataGet404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocMetadataGet404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesDelete400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesDelete400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesDelete400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesDelete400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesDelete400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesDelete400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesDelete404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActions{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesDelete404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesDelete404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesDelete404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesDelete404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesDelete404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesDelete404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesDelete404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesExtract400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesExtract400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesExtract400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesExtract400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesExtract400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesExtract400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesExtract404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesExtract404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesExtract404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesExtract404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesExtract404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesExtract404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesExtract404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesExtract404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesFlatten400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesFlatten400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesFlatten400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesFlatten400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesFlatten400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesFlatten400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesFlatten404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesFlatten404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesFlatten404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesFlatten404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesFlatten404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesFlatten404ResponseName("EngineError"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible{} + // 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("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesFlatten404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocPagesFlatten404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + // 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 }) -} -func TestEnumDocPagesInsert400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("Unknown"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidArg", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen{} + // 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("NewFromString_DocNotOpen", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot{} + // 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("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible{} + // 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("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Aborted", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("Aborted"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot{} + // 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("NewFromString_Network", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("Network"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Unauthenticated", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + // 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("NewFromString_Forbidden", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_NotFound", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("NotFound"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + // 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("NewFromString_WireFormat", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + // 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("NewFromString_InvalidReference", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + // 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("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_NotImplemented", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + // 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("NewFromString_MalformedPdf", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsert400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsert400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsert400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsert400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsert400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsert404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsert404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsert404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemText + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsert404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsert404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsert404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsert404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActions{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsert404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsertBlank400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsertBlank400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsertBlank400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsertBlank400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsertBlank400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsertBlank400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsertBlank404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsertBlank404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsertBlank404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesInsertBlank404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesInsertBlank404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesInsertBlank404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesInsertBlank404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesInsertBlank404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesMove400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesMove400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesMove400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesMove400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesMove400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesMove400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesMove404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActions{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesMove404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesMove404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesMove404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesMove404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesMove404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesMove404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesMove404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesRotate400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesRotate400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesRotate400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesRotate400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesRotate400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesRotate400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesRotate404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesRotate404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesRotate404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocPagesRotate404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocPagesRotate404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocPagesRotate404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocPagesRotate404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocPagesRotate404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocRedactionsApply400ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocRedactionsApply400ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocRedactionsApply400ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocRedactionsApply400ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply400ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply400ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocRedactionsApply400ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocRedactionsApply400ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocRedactionsApply404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocRedactionsApply404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocRedactionsApply404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocRedactionsApply404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRedactionsApply404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRedactionsApply404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocRedactionsApply404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocRedactionsApply404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocRenderResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocRenderResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocRenderResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocRenderResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocRenderResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocRenderResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocRenderResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocRenderResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocText404ResponseCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActions(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocText404ResponseCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActions{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocText404ResponseCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActions + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocText404ResponseName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocText404ResponseNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocText404ResponseName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocText404ResponseNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocText404ResponseNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocumentsImportFrom202ResponseDocumentState(t *testing.T) { - t.Run("NewFromString_pending", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("pending") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("pending"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot{} + // 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("NewFromString_ready", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("ready") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("ready"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_failed", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("failed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("failed"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur{} + // 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("NewFromString_deleting", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("deleting") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentState("deleting"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) - }) - - t.Run("Ptr", func(t *testing.T) { - val, err := NewDocumentsImportFrom202ResponseDocumentStateFromString("pending") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocumentsImportFrom202ResponseDocumentThumbnailState(t *testing.T) { - t.Run("NewFromString_pending", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("pending") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("pending"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot{} + // 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("NewFromString_ready", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("ready") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("ready"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_locked", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("locked") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("locked"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter{} + // 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("NewFromString_failed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("failed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseDocumentThumbnailState("failed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocumentsImportFrom202ResponseDocumentThumbnailStateFromString("pending") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumDocumentsImportFrom202ResponseTag(t *testing.T) { - t.Run("NewFromString_imported", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseTagFromString("imported") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseTag("imported"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit{} + // 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("NewFromString_deduped", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseTagFromString("deduped") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseTag("deduped"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_accepted", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewDocumentsImportFrom202ResponseTagFromString("accepted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, DocumentsImportFrom202ResponseTag("accepted"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewDocumentsImportFrom202ResponseTagFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewDocumentsImportFrom202ResponseTagFromString("imported") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumEngineErrorPayloadCode(t *testing.T) { - t.Run("NewFromString_Unknown", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("Unknown") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("Unknown"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus{} + // 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("NewFromString_InvalidArg", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("InvalidArg") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("InvalidArg"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocNotOpen", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("DocNotOpen") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("DocNotOpen"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot{} + // 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("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("DocOpenFailed") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("DocOpenFailed"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("DocPasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("DocPasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown{} + // 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("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("DocPasswordIncorrect") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("SharePasswordRequired") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("SharePasswordRequired"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot{} + // 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("NewFromString_Aborted", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("Aborted") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("Aborted"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Network", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("Network") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("Network"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp{} + // 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("NewFromString_Unauthenticated", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("Unauthenticated") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("Unauthenticated"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_Forbidden", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("Forbidden") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("Forbidden"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot{} + // 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("NewFromString_NotFound", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("NotFound") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("NotFound"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_WireFormat", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("WireFormat") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("WireFormat"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose{} + // 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("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("RuntimeUnavailable") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_InvalidReference", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("InvalidReference") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("InvalidReference"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot{} + // 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("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("WeakAnnotationSessionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("LayerVersionConflict") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("LayerVersionConflict"), val, "enum value should match expected wire value") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible{} + // 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("NewFromString_NotImplemented", func(t *testing.T) { + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("NotImplemented") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("NotImplemented"), val, "enum value should match expected wire value") + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) +} - t.Run("NewFromString_MalformedPdf", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadCodeFromString("MalformedPdf") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadCode("MalformedPdf"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewEngineErrorPayloadCodeFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot{} + // 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("Ptr", func(t *testing.T) { - val, err := NewEngineErrorPayloadCodeFromString("Unknown") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestEnumEngineErrorPayloadName(t *testing.T) { - t.Run("NewFromString_EngineError", func(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - val, err := NewEngineErrorPayloadNameFromString("EngineError") - assert.NoError(t, err, "valid enum value should not return error") - assert.Equal(t, EngineErrorPayloadName("EngineError"), val, "enum value should match expected wire value") - }) - - t.Run("NewFromString_Invalid", func(t *testing.T) { - _, err := NewEngineErrorPayloadNameFromString("invalid_value_that_does_not_exist") - assert.Error(t, err) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen{} + // 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("Ptr", func(t *testing.T) { - val, err := NewEngineErrorPayloadNameFromString("EngineError") - assert.NoError(t, err) - ptr := val.Ptr() - assert.NotNil(t, ptr) - assert.Equal(t, val, *ptr) + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesAdminErrorPayload(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &AdminErrorPayload{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417337,16 +747547,16 @@ func TestExtraPropertiesAdminErrorPayload(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AdminErrorPayload + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesAdminErrorPayloadError(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &AdminErrorPayloadError{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417360,16 +747570,16 @@ func TestExtraPropertiesAdminErrorPayloadError(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AdminErrorPayloadError + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200Response{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417383,16 +747593,16 @@ func TestExtraPropertiesDocAnnotationsCreate200Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200Response + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMeta(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMeta{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417406,16 +747616,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMeta(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMeta + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417429,16 +747639,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItem(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417452,16 +747662,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemRevi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417475,16 +747685,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeak t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417498,16 +747708,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaAffectedPagesItemWeak t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaCacheDelta{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417521,16 +747731,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDelta(t *testing t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaCacheDelta + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417544,16 +747754,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417567,16 +747777,16 @@ func TestExtraPropertiesDocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate200ResponseMetaCacheDeltaPagesItemCache + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate400Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate400Response{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417590,16 +747800,16 @@ func TestExtraPropertiesDocAnnotationsCreate400Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate400Response + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsCreate404Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsCreate404Response{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417613,16 +747823,16 @@ func TestExtraPropertiesDocAnnotationsCreate404Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsCreate404Response + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200Response{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417636,16 +747846,16 @@ func TestExtraPropertiesDocAnnotationsDelete200Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200Response + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMeta(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMeta{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417659,16 +747869,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMeta(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMeta + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItem{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417682,16 +747892,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItem(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItem + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponsePageState(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocAnnotationsList200ResponsePageState{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417705,16 +747915,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemRevi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemRevision + var obj *DocAnnotationsList200ResponsePageState extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocAnnotationsList200ResponsePageStateRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417728,16 +747938,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeak t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocAnnotationsList200ResponsePageStateRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417751,16 +747961,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaAffectedPagesItemWeak t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaCacheDelta{} + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417774,16 +747984,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDelta(t *testing t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaCacheDelta + var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsList404Response(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem{} + obj := &DocAnnotationsList404Response{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417797,16 +748007,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItem + var obj *DocAnnotationsList404Response extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200Response(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocAnnotationsListAll200Response{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417820,16 +748030,16 @@ func TestExtraPropertiesDocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete200ResponseMetaCacheDeltaPagesItemCache + var obj *DocAnnotationsListAll200Response extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsDelete404Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsDelete404Response{} + obj := &DocAnnotationsListAll200ResponsePagesItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417843,16 +748053,16 @@ func TestExtraPropertiesDocAnnotationsDelete404Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsDelete404Response + var obj *DocAnnotationsListAll200ResponsePagesItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200Response{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417866,16 +748076,16 @@ func TestExtraPropertiesDocAnnotationsList200Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaret(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaret{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417889,16 +748099,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaret(t *tes t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417912,16 +748122,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417935,16 +748145,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417958,16 +748168,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -417981,16 +748191,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418004,16 +748214,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418027,16 +748237,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418050,16 +748260,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418073,16 +748283,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418096,16 +748306,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418119,16 +748329,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418142,16 +748352,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418165,16 +748375,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418188,16 +748398,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418211,16 +748421,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418234,16 +748444,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418257,16 +748467,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418280,16 +748490,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418303,16 +748513,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418326,16 +748536,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418349,16 +748559,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418372,16 +748582,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418395,16 +748605,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418418,16 +748628,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418441,16 +748651,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretColor(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418464,16 +748674,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretFlags(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418487,16 +748697,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418510,16 +748720,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418533,16 +748743,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418556,16 +748766,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418579,16 +748789,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRect(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418602,16 +748812,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRectDif t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418625,16 +748835,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefInde t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418648,16 +748858,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefInde t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418671,16 +748881,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefNm(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418694,16 +748904,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretRefObje t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418717,16 +748927,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCaretUnrotat t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircle(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircle{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418740,16 +748950,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircle(t *te t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418763,16 +748973,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418786,16 +748996,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418809,16 +749019,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418832,16 +749042,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418855,16 +749065,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418878,16 +749088,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418901,16 +749111,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418924,16 +749134,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418947,16 +749157,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418970,16 +749180,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -418993,16 +749203,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419016,16 +749226,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419039,16 +749249,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419062,16 +749272,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419085,16 +749295,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419108,16 +749318,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419131,16 +749341,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419154,16 +749364,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419177,16 +749387,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419200,16 +749410,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419223,16 +749433,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419246,16 +749456,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419269,16 +749479,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419292,16 +749502,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleColor( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419315,16 +749525,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleFlags( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419338,16 +749548,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419361,16 +749571,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419384,16 +749594,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419407,16 +749617,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419430,16 +749640,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleInteri t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419453,16 +749663,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRect(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419476,16 +749686,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRectDi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419499,16 +749709,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419522,16 +749732,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419545,16 +749755,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefNm( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419568,16 +749778,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleRefObj t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419591,16 +749801,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemCircleUnrota t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemCircleUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachment(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachment{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419614,16 +749824,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419637,16 +749847,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419660,16 +749870,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419683,16 +749893,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419706,16 +749916,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419729,16 +749939,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419752,16 +749962,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419775,16 +749985,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419798,16 +750008,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419821,16 +750031,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419844,16 +750054,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419867,16 +750077,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419890,16 +750100,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419913,16 +750123,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419936,16 +750146,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419959,16 +750169,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -419982,16 +750192,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420005,16 +750215,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420028,16 +750238,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420051,16 +750261,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420074,16 +750284,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420097,16 +750307,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420120,16 +750330,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420143,16 +750353,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420166,16 +750376,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420189,16 +750399,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFile + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420212,16 +750422,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420235,16 +750445,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420258,16 +750468,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420281,16 +750491,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420304,16 +750514,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420327,16 +750537,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420350,16 +750560,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420373,16 +750583,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420396,16 +750606,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420419,16 +750629,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFileAttachme t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFileAttachmentRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeText(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420442,16 +750652,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeText(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420465,16 +750675,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420488,16 +750698,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420511,16 +750721,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420534,16 +750744,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420557,16 +750767,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420580,16 +750790,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420603,16 +750813,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420626,16 +750836,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420649,16 +750859,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420672,16 +750882,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420695,16 +750905,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420718,16 +750928,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420741,16 +750951,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420764,16 +750974,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420787,16 +750997,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420810,16 +751020,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420833,16 +751043,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420856,16 +751066,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420879,16 +751089,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420902,16 +751112,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420925,16 +751135,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420948,16 +751158,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420971,16 +751181,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -420994,16 +751204,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextColo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421017,16 +751227,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextFlag t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421040,16 +751250,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextFont t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421063,16 +751273,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421086,16 +751296,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421109,16 +751319,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421132,16 +751342,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421155,16 +751365,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextInte t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421178,16 +751388,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRect t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421201,16 +751411,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRect t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421224,16 +751434,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421247,16 +751457,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421270,16 +751480,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefN t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421293,16 +751503,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextRefO t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421316,16 +751526,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemFreeTextUnro t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemFreeTextUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlight(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421339,16 +751549,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlight(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421362,16 +751572,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421385,16 +751595,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421408,16 +751618,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421431,16 +751641,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421454,16 +751664,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421477,16 +751687,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421500,16 +751710,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421523,16 +751733,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421546,16 +751756,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421569,16 +751779,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421592,16 +751802,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421615,16 +751825,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421638,16 +751848,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421661,16 +751871,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421684,16 +751894,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421707,16 +751917,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421730,16 +751940,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421753,16 +751963,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421776,16 +751986,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421799,16 +752009,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421822,16 +752032,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421845,16 +752055,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421868,16 +752078,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421891,16 +752101,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightCol t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421914,16 +752124,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightFla t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421937,16 +752147,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421960,16 +752170,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -421983,16 +752193,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422006,16 +752216,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422029,16 +752239,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422052,16 +752262,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422075,16 +752285,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422098,16 +752308,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422121,16 +752331,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422144,16 +752354,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRec t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422167,16 +752377,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422190,16 +752400,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422213,16 +752423,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422236,16 +752446,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemHighlightRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemHighlightRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInk(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422259,16 +752469,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInk(t *testi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422282,16 +752492,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActions(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422305,16 +752515,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsAc t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422328,16 +752538,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsAc t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422351,16 +752561,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsBl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422374,16 +752584,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsBl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422397,16 +752607,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCu t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422420,16 +752630,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCu t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422443,16 +752653,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCu t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422466,16 +752676,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsCu t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422489,16 +752699,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsFo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422512,16 +752722,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsFo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422535,16 +752745,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422558,16 +752768,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422581,16 +752791,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422604,16 +752814,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsMo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422627,16 +752837,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422650,16 +752860,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422673,16 +752883,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422696,16 +752906,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422719,16 +752929,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422742,16 +752952,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422765,16 +752975,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422788,16 +752998,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkActionsPa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422811,16 +753021,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkColor(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422834,16 +753044,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkFlags(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422857,16 +753067,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyTo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422880,16 +753090,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyTo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422903,16 +753113,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyTo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422926,16 +753136,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInReplyTo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422949,16 +753159,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkInkListIt t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkInkListItemItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422972,16 +753182,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRect(t *t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -422995,16 +753205,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefIndex( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423018,16 +753228,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefIndexR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423041,16 +753251,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefNm(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423064,16 +753274,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemInkRefObject t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemInkRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423087,16 +753297,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLine(t *test t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423110,16 +753320,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActions( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423133,16 +753343,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423156,16 +753366,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423179,16 +753389,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsB t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423202,16 +753412,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsB t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423225,16 +753435,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423248,16 +753458,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423271,16 +753481,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423294,16 +753504,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423317,16 +753527,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423340,16 +753550,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423363,16 +753573,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423386,16 +753596,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423409,16 +753619,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423432,16 +753642,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423455,16 +753665,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423478,16 +753688,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423501,16 +753711,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423524,16 +753734,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423547,16 +753757,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423570,16 +753780,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423593,16 +753803,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423616,16 +753826,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423639,16 +753849,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineColor(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423662,16 +753872,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineFlags(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423685,16 +753895,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423708,16 +753918,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423731,16 +753941,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423754,16 +753964,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423777,16 +753987,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInterior t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423800,16 +754010,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLineEndi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423823,16 +754033,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePoin t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423846,16 +754056,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePoin t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423869,16 +754079,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePoin t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423892,16 +754102,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRect(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423915,16 +754125,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefIndex t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423938,16 +754148,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefIndex t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423961,16 +754171,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -423984,16 +754194,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRefObjec t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424007,16 +754217,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLink(t *test t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424030,16 +754240,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActions( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424053,16 +754263,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424076,16 +754286,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424099,16 +754309,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsB t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424122,16 +754332,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsB t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424145,16 +754355,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424168,16 +754378,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424191,16 +754401,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424214,16 +754424,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424237,16 +754447,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424260,16 +754470,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424283,16 +754493,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424306,16 +754516,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424329,16 +754539,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424352,16 +754562,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424375,16 +754585,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424398,16 +754608,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424421,16 +754631,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424444,16 +754654,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424467,16 +754677,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424490,16 +754700,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424513,16 +754723,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424536,16 +754746,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424559,16 +754769,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424582,16 +754792,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424605,16 +754815,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424628,16 +754838,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424651,16 +754861,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424674,16 +754884,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRect(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424697,16 +754907,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424720,16 +754930,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424743,16 +754953,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424766,16 +754976,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkRefObjec t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424789,16 +754999,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424812,16 +755022,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitB extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424835,16 +755045,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitB + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBh extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424858,16 +755068,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBh + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitBv extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424881,16 +755091,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitBv + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitH extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424904,16 +755114,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitH + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitR extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424927,16 +755137,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitR + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationFitV extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424950,16 +755160,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationFitV + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoDestinationXyz extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424973,16 +755183,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoDestinationXyz + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -424996,16 +755206,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetGo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425019,16 +755229,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetJa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425042,16 +755252,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetLa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425065,16 +755275,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetNa t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425088,16 +755298,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetUR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425111,16 +755321,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLinkTargetUn t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425134,16 +755344,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygon(t *t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425157,16 +755367,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425180,16 +755390,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425203,16 +755413,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425226,16 +755436,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425249,16 +755459,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425272,16 +755482,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425295,16 +755505,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425318,16 +755528,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425341,16 +755551,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425364,16 +755574,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425387,16 +755597,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425410,16 +755620,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425433,16 +755643,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425456,16 +755666,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425479,16 +755689,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425502,16 +755712,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425525,16 +755735,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425548,16 +755758,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425571,16 +755781,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425594,16 +755804,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425617,16 +755827,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425640,16 +755850,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425663,16 +755873,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonActio t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425686,16 +755896,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonColor t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425709,16 +755919,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonFlags t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425732,16 +755942,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInRep t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425755,16 +755965,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInRep t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425778,16 +755988,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInRep t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425801,16 +756011,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInRep t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425824,16 +756034,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInter t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425847,16 +756057,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRect( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425870,16 +756080,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefIn t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425893,16 +756103,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefIn t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425916,16 +756126,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425939,16 +756149,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRefOb t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425962,16 +756172,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonVerti t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -425985,16 +756195,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolyline(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426008,16 +756218,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426031,16 +756241,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426054,16 +756264,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426077,16 +756287,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426100,16 +756310,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426123,16 +756333,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426146,16 +756356,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426169,16 +756379,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426192,16 +756402,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426215,16 +756425,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426238,16 +756448,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426261,16 +756471,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426284,16 +756494,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426307,16 +756517,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426330,16 +756540,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426353,16 +756563,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426376,16 +756586,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426399,16 +756609,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426422,16 +756632,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426445,16 +756655,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426468,16 +756678,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426491,16 +756701,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426514,16 +756724,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426537,16 +756747,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineColo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426560,16 +756770,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineFlag t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426583,16 +756793,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426606,16 +756816,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426629,16 +756839,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426652,16 +756862,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426675,16 +756885,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineInte t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426698,16 +756908,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineLine t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426721,16 +756931,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRect t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426744,16 +756954,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426767,16 +756977,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426790,16 +757000,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefN t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426813,16 +757023,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRefO t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426836,16 +757046,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineVert t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426859,16 +757069,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedact(t *te t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426882,16 +757092,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426905,16 +757115,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426928,16 +757138,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426951,16 +757161,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426974,16 +757184,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -426997,16 +757207,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427020,16 +757230,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427043,16 +757253,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427066,16 +757276,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427089,16 +757299,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427112,16 +757322,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427135,16 +757345,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427158,16 +757368,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427181,16 +757391,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427204,16 +757414,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427227,16 +757437,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427250,16 +757460,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427273,16 +757483,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427296,16 +757506,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427319,16 +757529,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427342,16 +757552,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427365,16 +757575,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427388,16 +757598,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427411,16 +757621,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactColor( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427434,16 +757644,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactFlags( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427457,16 +757667,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactFontCo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427480,16 +757690,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427503,16 +757713,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427526,16 +757736,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427549,16 +757759,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427572,16 +757782,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactInteri t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427595,16 +757805,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427618,16 +757828,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427641,16 +757851,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427664,16 +757874,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427687,16 +757897,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactQuadPo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427710,16 +757920,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRect(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427733,16 +757943,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427756,16 +757966,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427779,16 +757989,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefNm( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427802,16 +758012,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemRedactRefObj t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427825,16 +758035,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquare(t *te t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427848,16 +758058,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427871,16 +758081,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427894,16 +758104,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427917,16 +758127,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427940,16 +758150,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427963,16 +758173,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -427986,16 +758196,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428009,16 +758219,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428032,16 +758242,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428055,16 +758265,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428078,16 +758288,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428101,16 +758311,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428124,16 +758334,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428147,16 +758357,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428170,16 +758380,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428193,16 +758403,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428216,16 +758426,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428239,16 +758449,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428262,16 +758472,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428285,16 +758495,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428308,16 +758518,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428331,16 +758541,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428354,16 +758564,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428377,16 +758587,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareColor( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428400,16 +758610,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareFlags( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428423,16 +758633,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428446,16 +758656,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428469,16 +758679,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428492,16 +758702,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428515,16 +758725,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareInteri t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428538,16 +758748,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRect(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428561,16 +758771,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRectDi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428584,16 +758794,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428607,16 +758817,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428630,16 +758840,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefNm( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428653,16 +758863,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareRefObj t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428676,16 +758886,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquareUnrota t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428699,16 +758909,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquiggly(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428722,16 +758932,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428745,16 +758955,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428768,16 +758978,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428791,16 +759001,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428814,16 +759024,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428837,16 +759047,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428860,16 +759070,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428883,16 +759093,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428906,16 +759116,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428929,16 +759139,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428952,16 +759162,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428975,16 +759185,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -428998,16 +759208,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429021,16 +759231,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429044,16 +759254,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429067,16 +759277,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429090,16 +759300,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429113,16 +759323,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429136,16 +759346,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429159,16 +759369,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429182,16 +759392,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429205,16 +759415,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429228,16 +759438,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyActi t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429251,16 +759461,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyColo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429274,16 +759484,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyFlag t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429297,16 +759507,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429320,16 +759530,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429343,16 +759553,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429366,16 +759576,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyInRe t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429389,16 +759599,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuad t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429412,16 +759622,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuad t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429435,16 +759645,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuad t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429458,16 +759668,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuad t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429481,16 +759691,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyQuad t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429504,16 +759714,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRect t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429527,16 +759737,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429550,16 +759760,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429573,16 +759783,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefN t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429596,16 +759806,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemSquigglyRefO t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429619,16 +759829,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStamp(t *tes t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429642,16 +759852,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429665,16 +759875,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429688,16 +759898,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429711,16 +759921,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429734,16 +759944,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429757,16 +759967,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429780,16 +759990,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429803,16 +760013,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429826,16 +760036,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429849,16 +760059,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429872,16 +760082,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429895,16 +760105,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429918,16 +760128,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429941,16 +760151,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429964,16 +760174,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -429987,16 +760197,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430010,16 +760220,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430033,16 +760243,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430056,16 +760266,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430079,16 +760289,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430102,16 +760312,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430125,16 +760335,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430148,16 +760358,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampActions t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430171,16 +760381,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampFlags(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430194,16 +760404,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430217,16 +760427,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430240,16 +760450,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430263,16 +760473,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampInReply t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430286,16 +760496,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRect(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430309,16 +760519,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefInde t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430332,16 +760542,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefInde t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430355,16 +760565,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430378,16 +760588,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampRefObje t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430401,16 +760611,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStampUnrotat t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430424,16 +760634,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeout(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430447,16 +760657,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430470,16 +760680,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430493,16 +760703,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430516,16 +760726,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430539,16 +760749,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430562,16 +760772,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430585,16 +760795,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430608,16 +760818,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430631,16 +760841,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430654,16 +760864,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430677,16 +760887,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430700,16 +760910,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430723,16 +760933,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430746,16 +760956,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430769,16 +760979,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430792,16 +761002,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430815,16 +761025,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430838,16 +761048,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430861,16 +761071,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430884,16 +761094,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430907,16 +761117,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430930,16 +761140,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430953,16 +761163,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430976,16 +761186,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutCol t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -430999,16 +761209,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutFla t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431022,16 +761232,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431045,16 +761255,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431068,16 +761278,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431091,16 +761301,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431114,16 +761324,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431137,16 +761347,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431160,16 +761370,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431183,16 +761393,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431206,16 +761416,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431229,16 +761439,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRec t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431252,16 +761462,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431275,16 +761485,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431298,16 +761508,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431321,16 +761531,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemStrikeoutRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431344,16 +761554,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemText(t *test t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431367,16 +761577,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActions( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431390,16 +761600,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431413,16 +761623,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431436,16 +761646,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsB t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431459,16 +761669,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsB t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431482,16 +761692,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431505,16 +761715,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431528,16 +761738,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431551,16 +761761,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsC t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431574,16 +761784,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431597,16 +761807,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431620,16 +761830,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431643,16 +761853,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431666,16 +761876,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431689,16 +761899,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsM t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431712,16 +761922,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431735,16 +761945,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431758,16 +761968,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431781,16 +761991,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431804,16 +762014,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431827,16 +762037,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431850,16 +762060,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431873,16 +762083,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextActionsP t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431896,16 +762106,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextColor(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431919,16 +762129,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextFlags(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431942,16 +762152,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431965,16 +762175,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -431988,16 +762198,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432011,16 +762221,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextInReplyT t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432034,16 +762244,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRect(t * t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432057,16 +762267,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefIndex t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432080,16 +762290,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefIndex t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432103,16 +762313,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432126,16 +762336,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemTextRefObjec t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432149,16 +762359,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderline(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432172,16 +762382,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432195,16 +762405,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432218,16 +762428,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432241,16 +762451,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432264,16 +762474,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432287,16 +762497,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432310,16 +762520,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432333,16 +762543,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432356,16 +762566,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432379,16 +762589,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432402,16 +762612,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432425,16 +762635,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432448,16 +762658,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432471,16 +762681,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432494,16 +762704,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432517,16 +762727,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432540,16 +762750,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432563,16 +762773,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432586,16 +762796,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432609,16 +762819,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432632,16 +762842,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432655,16 +762865,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432678,16 +762888,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineAct t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432701,16 +762911,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineCol t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432724,16 +762934,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineFla t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432747,16 +762957,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432770,16 +762980,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432793,16 +763003,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432816,16 +763026,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineInR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432839,16 +763049,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432862,16 +763072,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432885,16 +763095,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432908,16 +763118,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432931,16 +763141,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineQua t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432954,16 +763164,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRec t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -432977,16 +763187,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433000,16 +763210,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433023,16 +763233,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433046,16 +763256,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnderlineRef t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433069,16 +763279,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupported( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433092,16 +763302,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433115,16 +763325,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433138,16 +763348,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433161,16 +763371,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433184,16 +763394,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433207,16 +763417,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433230,16 +763440,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433253,16 +763463,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433276,16 +763486,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433299,16 +763509,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433322,16 +763532,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433345,16 +763555,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433368,16 +763578,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433391,16 +763601,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433414,16 +763624,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433437,16 +763647,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433460,16 +763670,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433483,16 +763693,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433506,16 +763716,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433529,16 +763739,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433552,16 +763762,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433575,16 +763785,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433598,16 +763808,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedA t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433621,16 +763831,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedF t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433644,16 +763854,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433667,16 +763877,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433690,16 +763900,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433713,16 +763923,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedI t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433736,16 +763946,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433759,16 +763969,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433782,16 +763992,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433805,16 +764015,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433828,16 +764038,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemUnsupportedR t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433851,16 +764061,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidget(t *te t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActions extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActions(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActions{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433874,16 +764084,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActions + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivate extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433897,16 +764107,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivate + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsActivateRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433920,16 +764130,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsActivateRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlur extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433943,16 +764153,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlur + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsBlurRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433966,16 +764176,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsBlurRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnter extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -433989,16 +764199,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnter + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorEnterRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434012,16 +764222,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorEnterRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExit extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434035,16 +764245,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExit + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsCursorExitRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434058,16 +764268,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsCursorExitRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocus extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434081,16 +764291,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocus + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsFocusRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434104,16 +764314,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsFocusRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434127,16 +764337,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDown + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseDownRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434150,16 +764360,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseDownRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUp extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434173,16 +764383,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsMouseUpRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434196,16 +764406,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsMouseUpRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageClose extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434219,16 +764429,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageClose + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageCloseRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434242,16 +764452,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageCloseRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434265,16 +764475,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageInvisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434288,16 +764498,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageInvisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpen extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434311,16 +764521,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpen + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageOpenRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434334,16 +764544,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageOpenRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisible extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434357,16 +764567,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisible + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetActionsPageVisibleRoot extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434380,16 +764590,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetAction t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetActionsPageVisibleRoot + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434403,16 +764613,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetColor( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434426,16 +764636,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetFlags( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434449,16 +764659,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetFontCo t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434472,16 +764682,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434495,16 +764705,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434518,16 +764728,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434541,16 +764751,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInRepl t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434564,16 +764774,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetInteri t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434587,16 +764797,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434610,16 +764820,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434633,16 +764843,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefInd t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434656,16 +764866,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm( t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434679,16 +764889,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemWidgetRefObj t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemPageState extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponsePageState(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageState{} + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434702,16 +764912,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponsePageState(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageState + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434725,16 +764935,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponsePageStateRevision(t *testin t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateRevision + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434748,16 +764958,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponsePageStateWeakAnnotationStat t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll404Response(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown{} + obj := &DocAnnotationsListAll404Response{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434771,16 +764981,16 @@ func TestExtraPropertiesDocAnnotationsList200ResponsePageStateWeakAnnotationStat t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + var obj *DocAnnotationsListAll404Response extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesDocAnnotationsList404Response(t *testing.T) { +func TestExtraPropertiesDocAnnotationsListAll409Response(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &DocAnnotationsList404Response{} + obj := &DocAnnotationsListAll409Response{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -434794,7 +765004,7 @@ func TestExtraPropertiesDocAnnotationsList404Response(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList404Response + var obj *DocAnnotationsListAll409Response extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/wiremock/wiremock-mappings.json b/wiremock/wiremock-mappings.json index 0f13b52..94d0275 100644 --- a/wiremock/wiremock-mappings.json +++ b/wiremock/wiremock-mappings.json @@ -129,7 +129,7 @@ }, "response": { "status": 200, - "body": "{\n \"docVersion\": 1,\n \"layoutVersion\": 1,\n \"metadataVersion\": 1,\n \"actionsVersion\": 1,\n \"attachmentsVersion\": 1,\n \"auditHead\": 1,\n \"baseSha\": \"baseSha\",\n \"scopes\": {\n \"content\": \"base\",\n \"annotations\": \"base\",\n \"layout\": \"base\",\n \"attachments\": \"base\",\n \"metadata\": \"base\",\n \"actions\": \"base\"\n },\n \"pages\": [\n {\n \"state\": {\n \"pageObjectNumber\": 1,\n \"revision\": {\n \"docSessionId\": \"docSessionId\",\n \"pageObjectNumber\": 1,\n \"generation\": 1\n },\n \"weakAnnotationState\": {\n \"kind\": \"unknown\"\n }\n },\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n}", + "body": "{\n \"docVersion\": 1,\n \"layoutVersion\": 1,\n \"metadataVersion\": 1,\n \"actionsVersion\": 1,\n \"attachmentsVersion\": 1,\n \"annotationsVersion\": 1,\n \"auditHead\": 1,\n \"baseSha\": \"baseSha\",\n \"scopes\": {\n \"content\": \"base\",\n \"annotations\": \"base\",\n \"layout\": \"base\",\n \"attachments\": \"base\",\n \"metadata\": \"base\",\n \"actions\": \"base\"\n },\n \"pages\": [\n {\n \"state\": {\n \"pageObjectNumber\": 1,\n \"revision\": {\n \"docSessionId\": \"docSessionId\",\n \"pageObjectNumber\": 1,\n \"generation\": 1\n },\n \"weakAnnotationState\": {\n \"kind\": \"unknown\"\n }\n },\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n}", "headers": { "Content-Type": "application/json" } @@ -1105,6 +1105,45 @@ } } }, + { + "id": "8a186cb1-b6b0-4179-9ef0-ed98a1c331c6", + "name": "All pages' annotations as one coherent snapshot at the current layer version. - default", + "request": { + "urlPathTemplate": "/v1/docs/{docId}/layers/{layerName}/annotations/items", + "method": "GET", + "headers": { + "Authorization": { + "matches": "Bearer .+" + } + }, + "pathParameters": { + "docId": { + "equalTo": "docId" + }, + "layerName": { + "equalTo": "layerName" + } + } + }, + "response": { + "status": 200, + "body": "{\n \"pages\": [\n {\n \"pageState\": {\n \"pageObjectNumber\": 1,\n \"revision\": {\n \"docSessionId\": \"docSessionId\",\n \"pageObjectNumber\": 1,\n \"generation\": 1\n },\n \"weakAnnotationState\": {\n \"kind\": \"unknown\"\n }\n },\n \"annotations\": [\n {\n \"ref\": {\n \"pageObjectNumber\": 1,\n \"annotObjectNumber\": 1,\n \"kind\": \"objectNumber\"\n },\n \"pageObjectNumber\": 1,\n \"index\": 1,\n \"identityQuality\": \"durable\",\n \"nm\": null,\n \"flags\": {\n \"invisible\": true,\n \"hidden\": true,\n \"print\": true,\n \"noZoom\": true,\n \"noRotate\": true,\n \"noView\": true,\n \"readOnly\": true,\n \"locked\": true,\n \"toggleNoView\": true,\n \"lockedContents\": true\n },\n \"rect\": {\n \"left\": 1.1,\n \"bottom\": 1.1,\n \"right\": 1.1,\n \"top\": 1.1\n },\n \"contents\": null,\n \"subject\": null,\n \"author\": null,\n \"created\": null,\n \"modified\": null,\n \"blendMode\": \"normal\",\n \"inReplyTo\": null,\n \"replyType\": null,\n \"color\": {\n \"r\": 1,\n \"g\": 1,\n \"b\": 1\n },\n \"opacity\": 1.1,\n \"quadPoints\": [\n {\n \"p1\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p2\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p3\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p4\": {\n \"x\": 1.1,\n \"y\": 1.1\n }\n }\n ],\n \"subtype\": \"highlight\"\n }\n ]\n }\n ],\n \"auditHead\": 1\n}", + "headers": { + "Content-Type": "application/json" + } + }, + "uuid": "8a186cb1-b6b0-4179-9ef0-ed98a1c331c6", + "persistent": true, + "priority": 3, + "metadata": { + "mocklab": { + "created": { + "at": "2020-01-01T00:00:00.000Z", + "via": "SYSTEM" + } + } + } + }, { "id": "e79b73b1-8c82-4996-8ca5-c46059b42f0d", "name": "One page's annotations at the current layer version. - default", @@ -1130,7 +1169,7 @@ }, "response": { "status": 200, - "body": "{\n \"pageState\": {\n \"pageObjectNumber\": 1,\n \"revision\": {\n \"docSessionId\": \"docSessionId\",\n \"pageObjectNumber\": 1,\n \"generation\": 1\n },\n \"weakAnnotationState\": {\n \"kind\": \"unknown\"\n }\n },\n \"annotations\": [\n {\n \"ref\": {\n \"pageObjectNumber\": 1,\n \"annotObjectNumber\": 1,\n \"kind\": \"objectNumber\"\n },\n \"pageObjectNumber\": 1,\n \"index\": 1,\n \"identityQuality\": \"durable\",\n \"nm\": \"nm\",\n \"flags\": {\n \"invisible\": true,\n \"hidden\": true,\n \"print\": true,\n \"noZoom\": true,\n \"noRotate\": true,\n \"noView\": true,\n \"readOnly\": true,\n \"locked\": true,\n \"toggleNoView\": true,\n \"lockedContents\": true\n },\n \"rect\": {\n \"left\": 1.1,\n \"bottom\": 1.1,\n \"right\": 1.1,\n \"top\": 1.1\n },\n \"contents\": \"contents\",\n \"author\": \"author\",\n \"created\": \"2024-01-15T09:30:00Z\",\n \"modified\": \"2024-01-15T09:30:00Z\",\n \"blendMode\": \"normal\",\n \"inReplyTo\": {\n \"pageObjectNumber\": 1,\n \"annotObjectNumber\": 1,\n \"kind\": \"objectNumber\"\n },\n \"replyType\": \"reply\",\n \"userId\": \"userId\",\n \"groupId\": \"groupId\",\n \"createdBy\": \"createdBy\",\n \"updatedBy\": \"updatedBy\",\n \"color\": {\n \"r\": 1,\n \"g\": 1,\n \"b\": 1\n },\n \"opacity\": 1.1,\n \"quadPoints\": [\n {\n \"p1\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p2\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p3\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p4\": {\n \"x\": 1.1,\n \"y\": 1.1\n }\n }\n ],\n \"subtype\": \"highlight\"\n }\n ]\n}", + "body": "{\n \"pageState\": {\n \"pageObjectNumber\": 1,\n \"revision\": {\n \"docSessionId\": \"docSessionId\",\n \"pageObjectNumber\": 1,\n \"generation\": 1\n },\n \"weakAnnotationState\": {\n \"kind\": \"unknown\"\n }\n },\n \"annotations\": [\n {\n \"ref\": {\n \"pageObjectNumber\": 1,\n \"annotObjectNumber\": 1,\n \"kind\": \"objectNumber\"\n },\n \"pageObjectNumber\": 1,\n \"index\": 1,\n \"identityQuality\": \"durable\",\n \"nm\": \"nm\",\n \"flags\": {\n \"invisible\": true,\n \"hidden\": true,\n \"print\": true,\n \"noZoom\": true,\n \"noRotate\": true,\n \"noView\": true,\n \"readOnly\": true,\n \"locked\": true,\n \"toggleNoView\": true,\n \"lockedContents\": true\n },\n \"rect\": {\n \"left\": 1.1,\n \"bottom\": 1.1,\n \"right\": 1.1,\n \"top\": 1.1\n },\n \"contents\": \"contents\",\n \"subject\": \"subject\",\n \"author\": \"author\",\n \"created\": \"2024-01-15T09:30:00Z\",\n \"modified\": \"2024-01-15T09:30:00Z\",\n \"blendMode\": \"normal\",\n \"inReplyTo\": {\n \"pageObjectNumber\": 1,\n \"annotObjectNumber\": 1,\n \"kind\": \"objectNumber\"\n },\n \"replyType\": \"reply\",\n \"userId\": \"userId\",\n \"groupId\": \"groupId\",\n \"createdBy\": \"createdBy\",\n \"updatedBy\": \"updatedBy\",\n \"color\": {\n \"r\": 1,\n \"g\": 1,\n \"b\": 1\n },\n \"opacity\": 1.1,\n \"quadPoints\": [\n {\n \"p1\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p2\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p3\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"p4\": {\n \"x\": 1.1,\n \"y\": 1.1\n }\n }\n ],\n \"subtype\": \"highlight\"\n }\n ]\n}", "headers": { "Content-Type": "application/json" } @@ -1172,7 +1211,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1217,7 +1256,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1262,7 +1301,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1379,7 +1418,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1421,7 +1460,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1463,7 +1502,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1541,7 +1580,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1619,7 +1658,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1658,7 +1697,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1697,7 +1736,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1736,7 +1775,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1775,7 +1814,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1814,7 +1853,7 @@ }, "response": { "status": 200, - "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "body": "{\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 \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", "headers": { "Content-Type": "application/json" } @@ -1833,6 +1872,6 @@ } ], "meta": { - "total": 48 + "total": 49 } } \ No newline at end of file